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

Unified Diff: src/trusted/platform/platform.gyp

Issue 10832400: Process abstraction layer for NaCl Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Provide consistent interface across all platforms. Created 8 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
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',
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698