Index: src/trusted/platform/platform.gyp |
diff --git a/src/trusted/platform/platform.gyp b/src/trusted/platform/platform.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..deb9e04b9dad257cd0a58b2d9d9880e57726f562 |
--- /dev/null |
+++ b/src/trusted/platform/platform.gyp |
@@ -0,0 +1,64 @@ |
+# -*- python -*- |
+# |
+# Copyright (c) 2012 The Native Client Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'includes': [ |
+ '../../../build/common.gypi', |
+ ], |
+ 'common_sources': [ |
+ 'nacl_process.h', |
Mark Seaborn
2012/08/24 00:22:42
FYI, you don't need to list header files in Gyp.
|
+ ], |
+ 'conditions': [ |
+ ['OS=="linux"', { |
+ 'platform_sources': [ |
+ 'posix/nacl_process.c', |
+ 'posix/nacl_process_types.h', |
+ ], |
+ }], |
+ ['OS=="mac"', { |
+ 'platform_sources': [ |
+ 'posix/nacl_process.c', |
+ 'posix/nacl_process_types.h', |
+ ], |
+ }], |
+ ['OS=="win"', { |
+ 'platform_sources': [ |
+ 'win/nacl_process.c', |
+ 'win/nacl_process_types.h', |
+ ], |
+ }], |
+ ], |
+ 'target_defaults': { |
+ 'variables': { |
+ 'target_base': 'none', |
+ }, |
+ 'target_conditions': [ |
+ ['target_base=="nacl_platform"', { |
+ 'sources': [ |
+ '<@(common_sources)', |
+ '<@(platform_sources)', |
+ ], |
+ }], |
+ ['target_base=="nacl_platform_tests"', { |
+ 'sources': [ |
+ 'nacl_process_test.c', |
+ ], |
+ }], |
+ ], |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'nacl_platform', |
Mark Seaborn
2012/08/24 00:22:42
You're missing a definition of this for 64-bit Win
|
+ 'type': 'static_library', |
+ 'variables': { |
+ 'target_base': 'nacl_platform', |
+ }, |
+ 'dependencies': [ |
+ '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', |
+ ], |
+ }, |
+ ], |
+} |