Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| 11 # with the distribution. | 11 # with the distribution. |
| 12 # * Neither the name of Google Inc. nor the names of its | 12 # * Neither the name of Google Inc. nor the names of its |
| 13 # contributors may be used to endorse or promote products derived | 13 # contributors may be used to endorse or promote products derived |
| 14 # from this software without specific prior written permission. | 14 # from this software without specific prior written permission. |
| 15 # | 15 # |
| 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 { | 28 { |
| 29 'includes': ['../../build/common.gypi'], | 29 'includes': ['../../build/common.gypi'], |
| 30 'target_conditions': [ | |
|
Jakob Kummerow
2011/11/03 08:30:56
Note that these settings will not be applied to d8
Jing Zhao
2011/11/03 15:53:36
I think that's a good idea because we'll want to b
| |
| 31 ['OS=="android" and _toolset=="target"', { | |
| 32 'link_settings': { | |
| 33 'libraries': [ | |
| 34 '-llog', | |
| 35 ], | |
| 36 } | |
| 37 }], | |
| 38 ], | |
| 30 'conditions': [ | 39 'conditions': [ |
| 31 ['use_system_v8==0', { | 40 ['use_system_v8==0', { |
| 32 'targets': [ | 41 'targets': [ |
| 33 { | 42 { |
| 34 'target_name': 'v8', | 43 'target_name': 'v8', |
| 35 'conditions': [ | 44 'conditions': [ |
| 36 ['want_separate_host_toolset==1', { | 45 ['want_separate_host_toolset==1', { |
| 37 'toolsets': ['host', 'target'], | 46 'toolsets': ['host', 'target'], |
| 38 }, { | 47 }, { |
| 39 'toolsets': ['target'], | 48 'toolsets': ['target'], |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 602 'conditions': [ | 611 'conditions': [ |
| 603 ['host_os=="mac" and _toolset!="target"', { | 612 ['host_os=="mac" and _toolset!="target"', { |
| 604 'sources': [ | 613 'sources': [ |
| 605 '../../src/platform-macos.cc' | 614 '../../src/platform-macos.cc' |
| 606 ] | 615 ] |
| 607 }, { | 616 }, { |
| 608 'sources': [ | 617 'sources': [ |
| 609 '../../src/platform-linux.cc' | 618 '../../src/platform-linux.cc' |
| 610 ] | 619 ] |
| 611 }], | 620 }], |
| 612 ['_toolset=="target"', { | |
| 613 'link_settings': { | |
| 614 'libraries': [ | |
| 615 '-llog', | |
| 616 ], | |
| 617 } | |
| 618 }], | |
| 619 ], | 621 ], |
| 620 }, | 622 }, |
| 621 ], | 623 ], |
| 622 ['OS=="freebsd"', { | 624 ['OS=="freebsd"', { |
| 623 'link_settings': { | 625 'link_settings': { |
| 624 'libraries': [ | 626 'libraries': [ |
| 625 '-L/usr/local/lib -lexecinfo', | 627 '-L/usr/local/lib -lexecinfo', |
| 626 ]}, | 628 ]}, |
| 627 'sources': [ | 629 'sources': [ |
| 628 '../../src/platform-freebsd.cc', | 630 '../../src/platform-freebsd.cc', |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 736 '<(v8_compress_startup_data)', | 738 '<(v8_compress_startup_data)', |
| 737 '<@(experimental_library_files)' | 739 '<@(experimental_library_files)' |
| 738 ], | 740 ], |
| 739 }, | 741 }, |
| 740 ], | 742 ], |
| 741 }, | 743 }, |
| 742 { | 744 { |
| 743 'target_name': 'mksnapshot', | 745 'target_name': 'mksnapshot', |
| 744 'type': 'executable', | 746 'type': 'executable', |
| 745 'dependencies': [ | 747 'dependencies': [ |
| 748 'v8_base', | |
|
Jakob Kummerow
2011/11/03 08:30:56
Since v8_nosnapshot depends on v8_base anyway, I d
Søren Gjesse
2011/11/03 11:45:13
As far as I remember this is a workaround for a GY
Jing Zhao
2011/11/03 15:53:36
When building for Linux, the linking command line
| |
| 746 'v8_nosnapshot', | 749 'v8_nosnapshot', |
| 747 ], | 750 ], |
| 748 'include_dirs+': [ | 751 'include_dirs+': [ |
| 749 '../../src', | 752 '../../src', |
| 750 ], | 753 ], |
| 751 'sources': [ | 754 'sources': [ |
| 752 '../../src/mksnapshot.cc', | 755 '../../src/mksnapshot.cc', |
| 753 ], | 756 ], |
| 754 'conditions': [ | 757 'conditions': [ |
| 755 ['want_separate_host_toolset==1', { | 758 ['want_separate_host_toolset==1', { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 883 }], | 886 }], |
| 884 ], | 887 ], |
| 885 'dependencies': [ | 888 'dependencies': [ |
| 886 'v8' | 889 'v8' |
| 887 ], | 890 ], |
| 888 }, | 891 }, |
| 889 ], | 892 ], |
| 890 }], | 893 }], |
| 891 ], | 894 ], |
| 892 } | 895 } |
| OLD | NEW |