Commit Graph

8 Commits

Author SHA1 Message Date
Thomas Nagy 0cd060c394
Make it easier to declare asm or preprocessed outputs to c/c++ tasks
The following can be used to add asm outputs to a c++ task (gcc):

        from waflib import Task
        from waflib.TaskGen import feature, after_method
        @feature('cxx')
        @after_method('process_source')
        def add_asm_outputs(self):
                for tsk in self.compiled_tasks:
                        node2 = tsk.outputs[0].change_ext('.s')
                        tsk.env.append_value('CXXFLAGS', '-Wa,-adhln=%s' % node2.abspath())
                        tsk.outputs.append(node2)
2014-03-11 21:23:57 +01:00
Thomas Nagy 44720924b6 case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows 2014-01-02 18:12:35 +01:00
Thomas Nagy 6ab04926e6 get rid of the -framework flags during the compilation (bad request from someone...) 2012-07-24 19:40:29 +02:00
Thomas Nagy bf2b2fa982 add the -framework flags for the compilation too 2012-06-16 21:36:07 +02:00
Thomas Nagy 284c3a0810 Install all libraries with +x 2012-03-03 15:54:17 +01:00
Thomas Nagy 959e450043 cleanup for waf 1.7 2012-02-06 01:45:44 +01:00
Harald Klimach 1f8c9269d1 Move LINKFLAGS further to the front, similar to
the CFLAGS.
2011-09-11 12:02:48 +02:00
Thomas Nagy 44a967e326 Initial commit 2011-09-10 11:13:51 +02:00