1 # Copyright 2008, Google Inc.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 '$SOURCE_ROOT/googleclient',
41 if env['TARGET_PLATFORM'] == 'LINUX':
53 if env['TARGET_PLATFORM'] == 'MAC':
55 CPPPATH = ['/Developer/Headers/FlatCarbon'],
62 ['TARGET_API_MAC_CARBON', '1'],
66 # TODO: it's a little awkward to, when you want a bundle:
67 # 1) add -bundle to your LINKFLAGS
68 # 2) create a "program" (which shows up in all_programs target)
69 # 3) create a bundle out of it, specifying the bundle extension
70 # Ideally that all happens inside a CompleteBundlePseudoBuilder().
77 if env['TARGET_PLATFORM'] == 'WINDOWS':
83 'XP_WIN', 'WIN32', '_WINDOWS'
86 env.Tool('atlmfc_vc80')
89 nonnacl_util_inputs = [
90 'sel_ldr_launcher.cc',
93 if env['TARGET_PLATFORM'] == 'WINDOWS':
94 nonnacl_util_inputs += [
95 'win/sel_ldr_launcher_win.cc',
97 elif env['TARGET_PLATFORM'] == 'LINUX':
98 nonnacl_util_inputs += [
99 'linux/sel_ldr_launcher_linux.cc',
100 'linux/get_plugin_dirname.cc',
103 nonnacl_util_inputs += [
104 'linux/sel_ldr_launcher_linux.cc',
105 'osx/get_plugin_dirname.mm',
108 nonnacl_util_inputs = env.ComponentObject(nonnacl_util_inputs)
110 nonnacl_util_c_inputs = nonnacl_util_inputs + [ 'sel_ldr_launcher_c.cc' ]
112 env.ComponentLibrary('nonnacl_util', nonnacl_util_inputs)
113 env.ComponentLibrary('nonnacl_util_c', nonnacl_util_c_inputs)