Index: test/actions-shared-library/shared.gyp |
=================================================================== |
--- test/actions-shared-library/shared.gyp (revision 0) |
+++ test/actions-shared-library/shared.gyp (revision 0) |
@@ -0,0 +1,65 @@ |
+# Copyright 2013 Google Inc. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'conditions': [ |
+ ['OS=="linux"', { |
+ 'target_defaults': { |
+ 'cflags': ['-fPIC'], |
+ }, |
+ }], |
+ ], |
+ 'targets': [ |
+ { |
+ 'target_name': 'lib', |
+ 'type': 'shared_library', |
+ 'toolsets': [ |
+ 'host' |
+ ], |
+ 'defines': [ |
+ 'LIB_IMPLEMENTATION', |
+ ], |
+ 'sources': [ |
+ 'lib.cc', |
+ 'lib.h', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'tool', |
+ 'type': 'executable', |
+ 'toolsets': [ |
+ 'host' |
+ ], |
+ 'dependencies': [ |
+ 'lib', |
+ ], |
+ 'sources': [ |
+ 'tool.cc', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'prog', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'tool#host', |
+ ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'gen', |
+ 'inputs': [ |
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)tool<(EXECUTABLE_SUFFIX)', |
+ ], |
+ 'outputs': [ |
+ 'prog.cc', |
+ ], |
+ 'process_outputs_as_sources': 1, |
+ 'action': [ |
+ '<@(_inputs)', |
+ '<@(_outputs)', |
+ ], |
+ }, |
+ ], |
+ }, |
+ ], |
+} |
Property changes on: test/actions-shared-library/shared.gyp |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |