Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1774)

Unified Diff: test/actions-shared-library/shared.gyp

Issue 22382003: Fix running actions and rules on make/mac (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/actions-shared-library/lib.cc ('k') | test/actions-shared-library/tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « test/actions-shared-library/lib.cc ('k') | test/actions-shared-library/tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698