Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6965435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:03:40+00:00 2026-05-27T16:03:40+00:00

I have protobuf proto-files in source tree. I want to generate the source files

  • 0

I have protobuf proto-files in source tree. I want to generate the source files from proto-files on every change and on first run (e.g. I create new proto-file). Then, I want to compile shared library from these source files and preserve them in source tree.

What is the best way to achieve my goal?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:03:41+00:00Added an answer on May 27, 2026 at 4:03 pm

    I have found the solution by myself:

    from waflib import Build, Utils, TaskGen
    
    def build(bld):
        bld.post_mode = Build.POST_LAZY
    
        # some bld(...) tasks that generate source files.
    
        bld.shlib(source='main.cc', dynamic_source='**/*.cc', target='test')
    
    @TaskGen.feature('cxxshlib')
    @TaskGen.before('process_source')
    def dynamic_post(self):
        if not getattr(self, 'dynamic_source', None):
            return
        self.source = Utils.to_list(self.source)
        self.source.extend(self.path.get_bld().ant_glob(self.dynamic_source))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly simple android app, it gets protobuf data from a web
I'm using protobuf-net , and I'm trying to: Generate a C# class from a
I'm trying to read multiple files that have been serialized with ProtoBuf.NET using .NET
I'm using protobuf-net r278 in C#, and I just noticed that if I have
I am using the latest version of protobuf-net with VS2008 integration. I have created
Have you guys had any experiences (positive or negative) by placing your source code/solution
I have been looking at protobuf-net recently and protocol buffers and so far it
I have started using the protobuf-net lib to communication between some of the programs
I have a working java client that is communicating with Google, through ProtoBuf serialized
I have been working on a system which I'm using protobuf-net (version 2.0.0.480) for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.