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

Unified Diff: ppapi/native_client/src/shared/ppapi/build.scons

Issue 7920012: Add missing NaCl PPAPI test components to Chrome repo. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « no previous file | ppapi/native_client/src/shared/ppapi/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi/build.scons
===================================================================
--- ppapi/native_client/src/shared/ppapi/build.scons (revision 0)
+++ ppapi/native_client/src/shared/ppapi/build.scons (revision 0)
@@ -0,0 +1,36 @@
+# -*- python -*-
+# Copyright 2011 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.
+
+import gyp_extract
+Import('env')
+
+# Underlay $SOURCE_ROOT/ppapi in this directory.
+Dir('.').addRepository(Dir('#/../ppapi'))
+
+if env.Bit('linux'):
+ env.Append(CCFLAGS=['-fPIC'])
+
+# Don't treat warnings as errors on Windows
+if env.Bit('windows'):
+ env.FilterOut(CCFLAGS=['/WX'])
+
+# TODO(ncbray): reenable
+# http://code.google.com/p/nativeclient/issues/detail?id=1643
+env.FilterOut(CCFLAGS=['-Wswitch-enum'])
+
+# Load ppapi_cpp.gypi
+ppapi_cpp_gypi = gyp_extract.LoadGypFile(
+ env.File('$SOURCE_ROOT/ppapi/ppapi_cpp.gypi').abspath)
+
+# From ppapi_cpp.gypi:ppapi_cpp_objects:.*\.cc
+# From ppapi_cpp.gypi:ppapi_cpp:.*\.cc
+cpp_sources = (
+ gyp_extract.GypTargetSources(
+ ppapi_cpp_gypi, 'ppapi_cpp_objects', '.*\.cc') +
+ gyp_extract.GypTargetSources(
+ ppapi_cpp_gypi, 'ppapi_cpp', '.*\.cc')
+)
+
+env.DualLibrary('ppapi_cpp', cpp_sources)
Property changes on: ppapi/native_client/src/shared/ppapi/build.scons
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | ppapi/native_client/src/shared/ppapi/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698