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

Unified Diff: ppapi/native_client/tests/ppapi_messaging/nacl.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_messaging/nacl.scons
===================================================================
--- ppapi/native_client/tests/ppapi_messaging/nacl.scons (revision 0)
+++ ppapi/native_client/tests/ppapi_messaging/nacl.scons (revision 0)
@@ -0,0 +1,49 @@
+# -*- 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.
+
+# This is a C PPAPI
+#
+# ppapi_messaging.html - test driver that loads the nexe and scripts it
+# ppapi_messaging.nmf - manifest file for serving platform specific nexe binary.
+#
+# ppapi_messaging.c - implementation of PPP interface and PPP_Instance
+
+Import('env')
+
+env.Prepend(CPPDEFINES=['XP_UNIX'])
+
+nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH')
+
+env.Alias('ppapi_messaging${PROGSUFFIX}',
+ ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
+
+ppapi_messaging_nexe = env.ComponentProgram(nexe,
+ ['ppapi_messaging.c'],
+ EXTRA_LIBS=['${PPAPI_LIBS}',
+ 'platform',
+ 'gio',
+ 'pthread',
+ 'm',
+ ])
+
+# Note that the html is required to run this program.
+dest_copy = env.Replicate('$STAGING_DIR',
+ ['ppapi_messaging.html',
+ 'ppapi_messaging.nmf',
+ env.File('${SCONSTRUCT_DIR}/tools/browser_tester/'
+ 'browserdata/nacltest.js')]
+ )
+env.Depends(nexe, dest_copy)
+
+node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out',
+ url='ppapi_messaging.html',
+ files=[ppapi_messaging_nexe,
+ env.File('ppapi_messaging.nmf'),
+ env.File('ppapi_messaging.html')])
+
+env.AddNodeToTestSuite(node,
+ ['chrome_browser_tests'],
+ 'run_ppapi_messaging_browser_test',
+ is_broken=env.PPAPIBrowserTesterIsBroken())
« no previous file with comments | « ppapi/native_client/tests/ppapi_messaging/build.scons ('k') | ppapi/native_client/tests/ppapi_messaging/ppapi_messaging.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698