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

Unified Diff: ppapi/native_client/tests/ppapi_tests/build.scons

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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: ppapi/native_client/tests/ppapi_tests/build.scons
===================================================================
--- ppapi/native_client/tests/ppapi_tests/build.scons (revision 0)
+++ ppapi/native_client/tests/ppapi_tests/build.scons (revision 0)
@@ -0,0 +1,45 @@
+# -*- 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.
+
+# A way to build the PPAPI tests as a trusted plugin to validate directly
+# against Chrome on Linux using these arguments:
+# --register-pepper-plugins=\
+# "/path/to/libppapi_tests_<ARCH>.so;application/x-nacl"
+# --enable-pepper-testing \
+# http://localhost:5103/scons-out/nacl-x86-../staging/test_case.html
+# Tip: you can verify that the plugin was loaded by navigating to about:plugins
+# in Chromium.
+
+# Also see nacl.scons for building/running (a subset of) these tests in NaCl.
+
+Import('env')
+
+if env.Bit('linux'):
+ env['COMPONENT_STATIC'] = False # Build a .so, not a .a
+
+ # Adjust CCFLAGS to match the more forgiving standards used in the Chromium
+ # PPAPI tests.
+ env.FilterOut(CCFLAGS=['-Werror', '-pedantic'])
+ env.Append(CCFLAGS=['-Wno-unused-parameter',
+ '-Wno-missing-field-initializers',
+ '-Wall'])
+ ppapi_tests_trusted = 'libppapi_tests_%s.so' % env.get('TARGET_FULLARCH')
+
+ libppapi_tests_so = env.ComponentLibrary(
+ ppapi_tests_trusted,
+ Glob('${SOURCE_ROOT}/ppapi/tests/*.cc'),
+ EXTRA_LIBS=['ppapi_cpp'],
+ no_import_lib=True)
+
+ env.Publish(ppapi_tests_trusted, 'run',
+ ['${SOURCE_ROOT}/ppapi/tests/test_url_loader_data/*'],
+ subdir='test_url_loader_data')
+
+ env.Publish(ppapi_tests_trusted, 'run',
+ [libppapi_tests_so,
+ '${SOURCE_ROOT}/ppapi/tests/test_case.html',
+ 'test_case.nmf',
+ '${SOURCE_ROOT}/ppapi/tests/test_image_data',
+ '${SOURCE_ROOT}/ppapi/tests/test_page.css'])
« no previous file with comments | « ppapi/native_client/tests/ppapi_test_lib/testable_callback.cc ('k') | ppapi/native_client/tests/ppapi_tests/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698