| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2012 The Native Client Authors. All rights reserved. | 2 # Copyright 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 # This is a C PPAPI | 6 # This is a C PPAPI |
| 7 # | 7 # |
| 8 # ppapi_messaging.html - test driver that loads the nexe and scripts it | 8 # ppapi_messaging.html - test driver that loads the nexe and scripts it |
| 9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. | 9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. |
| 10 # | 10 # |
| 11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance | 11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance |
| 12 | 12 |
| 13 Import('env') | 13 Import('env') |
| 14 | 14 |
| 15 env.Prepend(CPPDEFINES=['XP_UNIX']) | 15 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 16 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' + | 16 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' + |
| 17 'ppapi_messaging/') | 17 'ppapi_messaging/') |
| 18 | 18 |
| 19 nexe = env.ProgramNameForNmf('ppapi_messaging') | 19 nexe = env.ProgramNameForNmf('ppapi_messaging') |
| 20 env.Alias('ppapi_messaging${PROGSUFFIX}', | 20 env.Alias('ppapi_messaging${PROGSUFFIX}', |
| 21 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | 21 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 22 ppapi_messaging_nexe = env.ComponentProgram(nexe, | 22 ppapi_messaging_nexe = env.ComponentProgram(nexe, |
| 23 ['ppapi_messaging.c'], | 23 ['ppapi_messaging.c'], |
| 24 EXTRA_LIBS=['${PPAPI_LIBS}', | 24 EXTRA_LIBS=['ppapi', |
| 25 'platform', | 25 'platform', |
| 26 'gio', | 26 'gio', |
| 27 'pthread', | 27 'pthread', |
| 28 'm', | 28 'm', |
| 29 ]) | 29 ]) |
| 30 | 30 |
| 31 env.Publish(nexe, | 31 env.Publish(nexe, |
| 32 'run', | 32 'run', |
| 33 ['ppapi_messaging.html']) | 33 ['ppapi_messaging.html']) |
| 34 | 34 |
| 35 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', | 35 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', |
| 36 url='ppapi_messaging.html', | 36 url='ppapi_messaging.html', |
| 37 nmf_names=['ppapi_messaging'], | 37 nmf_names=['ppapi_messaging'], |
| 38 files=env.ExtractPublishedFiles(nexe)) | 38 files=env.ExtractPublishedFiles(nexe)) |
| 39 | 39 |
| 40 env.AddNodeToTestSuite(node, | 40 env.AddNodeToTestSuite(node, |
| 41 ['chrome_browser_tests'], | 41 ['chrome_browser_tests'], |
| 42 'run_ppapi_messaging_browser_test', | 42 'run_ppapi_messaging_browser_test', |
| 43 is_broken=env.PPAPIBrowserTesterIsBroken()) | 43 is_broken=env.PPAPIBrowserTesterIsBroken()) |
| OLD | NEW |