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

Side by Side Diff: experimental/flocking_geese/build.scons

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 #! -*- python -*-
2 #
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Note: flocking_geese requires libpng, libjpeg and boost to be installed into
8 # the SDK. You can do this by checking out naclports.googlecode.com, and
9 # doing make png; make jpeg; make boost. This doesn't work on Windows (or
10 # requires cygwin).
11
12 import make_nacl_env
13 import nacl_utils
14 import os
15
16 nacl_platform_dir = os.path.join(os.getenv('NACL_SDK_ROOT', ''),
17 os.getenv('NACL_TARGET_PLATFORM', ''))
18
19 nacl_env = make_nacl_env.NaClEnvironment(
20 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM'))
21 nacl_env.Append(
22 CPPPATH=[
23 os.getcwd(),
24 os.path.dirname(os.getcwd()),
25 os.path.join(nacl_platform_dir, 'third_party'),
26 ],
27 OPT_CCFLAGS=['-ffast-math',
28 '-mfpmath=sse',
29 '-msse2'],
30 LIBS=['jpeg', 'png', 'z'],
31 )
32
33 app_sources = [os.path.join('nacl_app', src_file) for src_file in [
34 'flock.cc',
35 'flocking_geese_app.cc',
36 'flocking_geese_module.cc',
37 'frame_counter.cc',
38 'goose.cc',
39 'png_loader.cc',
40 'sprite.cc',
41 ]]
42
43 scripting_sources = [os.path.join('scripting', src_file) for src_file in [
44 'scripting_bridge.cc',
45 ]]
46
47 url_io_sources = [os.path.join('url_io', src_file) for src_file in [
48 'web_resource_loader.cc',
49 'url_request.cc',
50 ]]
51
52 sources = app_sources + scripting_sources + url_io_sources
53
54 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'flocking_geese')
55
56 nacl_install_root = os.getenv(
57 'NACL_INSTALL_ROOT', os.path.join('C:%s' % os.sep, 'inetpub', 'wwwroot'))
58 install_dir = os.path.join(nacl_install_root, 'flocking_geese')
59
60 cws_files = ['manifest.json',
61 os.path.join('images', 'flocking_geese_icon.png'),
62 os.path.join('images', 'flocking_geese_icon16.png'),
63 ]
64
65 install_cws = nacl_env.Install(dir=os.path.join(install_dir, 'cws'),
66 source=cws_files)
67
68 app_files = ['about.html',
69 'flocking_geese.nmf',
70 'google0bfe793046475826.html',
71 'googlee7137647d2344460.html',
72 'index.html',
73 ]
74
75 install_app = nacl_env.Install(dir=install_dir,
76 source=opt_nexes + app_files)
77
78 js_files = [os.path.join('js', js_file) for js_file in [
79 'check_browser.js',
80 'closure.js',
81 'flock.js',
82 'flocking_geese.js',
83 'frame_counter.js',
84 'goose.js',
85 'load_progress.js',
86 'slider.js',
87 'slider_event.js',
88 'speedometer.js',
89 ]]
90
91 install_js = nacl_env.Install(
92 dir=os.path.join(install_dir, 'js'),
93 source=js_files)
94
95 css_files = [os.path.join('css', css_file) for css_file in [
96 'flocking_geese.css',
97 'form_input.css',
98 'info_panel.css',
99 'load_progress.css',
100 'slider.css',
101 'speedometer.css',
102 ]]
103
104 install_css = nacl_env.Install(
105 dir=os.path.join(install_dir, 'css'),
106 source=css_files)
107
108 image_files = [os.path.join('images', img_file) for img_file in [
109 'DialBackground.png',
110 'DialFace.png',
111 'Flock32_Green.png',
112 'Flock32_red.png',
113 'flock_size_ruler.png',
114 'hub.png',
115 'numbers_grey.png',
116 'numbers_red.png',
117 'odometer.png',
118 'pointer_green.png',
119 'pointer_grey.png',
120 'pointer_red.png',
121 'sim_select_ruler.png',
122 'slider_thumb.png',
123 ]]
124
125 install_images = nacl_env.Install(
126 dir=os.path.join(install_dir, 'images'),
127 source=image_files)
128
129 nacl_env.Alias('install',
130 source=[install_cws,
131 install_app,
132 install_css,
133 install_js,
134 install_images])
135
OLDNEW
« no previous file with comments | « experimental/flocking_geese/about.html ('k') | experimental/flocking_geese/css/flocking_geese.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698