| 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
|
|
|
|
|