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

Side by Side Diff: tools/gyp/v8.gyp

Issue 23283010: Add (mostly Chromium-compatible) V8_OS_* defines to v8.gyp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Solaris is not BSD, of course. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 ['OS=="linux"', { 680 ['OS=="linux"', {
681 'link_settings': { 681 'link_settings': {
682 'conditions': [ 682 'conditions': [
683 ['v8_compress_startup_data=="bz2"', { 683 ['v8_compress_startup_data=="bz2"', {
684 'libraries': [ 684 'libraries': [
685 '-lbz2', 685 '-lbz2',
686 ] 686 ]
687 }], 687 }],
688 ], 688 ],
689 }, 689 },
690 'defines': [
691 'V8_OS_LINUX=1',
692 'V8_OS_POSIX=1'
693 ],
690 'sources': [ ### gcmole(os:linux) ### 694 'sources': [ ### gcmole(os:linux) ###
691 '../../src/platform-linux.cc', 695 '../../src/platform-linux.cc',
692 '../../src/platform-posix.cc' 696 '../../src/platform-posix.cc'
693 ], 697 ],
694 } 698 }
695 ], 699 ],
696 ['OS=="android"', { 700 ['OS=="android"', {
697 'defines': [ 701 'defines': [
698 'CAN_USE_VFP_INSTRUCTIONS', 702 'CAN_USE_VFP_INSTRUCTIONS',
699 ], 703 ],
700 'sources': [ 704 'sources': [
701 '../../src/platform-posix.cc', 705 '../../src/platform-posix.cc',
702 ], 706 ],
703 'conditions': [ 707 'conditions': [
704 ['host_os=="mac"', { 708 ['host_os=="mac"', {
705 'target_conditions': [ 709 'target_conditions': [
706 ['_toolset=="host"', { 710 ['_toolset=="host"', {
711 'defines': [
712 'V8_OS_BSD=1',
713 'V8_OS_MACOSX=1',
714 'V8_OS_POSIX=1'
715 ],
707 'sources': [ 716 'sources': [
708 '../../src/platform-macos.cc' 717 '../../src/platform-macos.cc'
709 ] 718 ]
710 }, { 719 }, {
720 'defines': [
721 'V8_OS_LINUX=1',
722 'V8_OS_POSIX=1'
723 ],
711 'sources': [ 724 'sources': [
712 '../../src/platform-linux.cc' 725 '../../src/platform-linux.cc'
713 ] 726 ]
714 }], 727 }],
715 ], 728 ],
716 }, { 729 }, {
730 'defines': [
731 'V8_OS_LINUX=1',
732 'V8_OS_POSIX=1'
733 ],
717 'sources': [ 734 'sources': [
718 '../../src/platform-linux.cc' 735 '../../src/platform-linux.cc'
719 ] 736 ]
720 }], 737 }],
721 ], 738 ],
722 }, 739 },
723 ], 740 ],
724 ['OS=="freebsd"', { 741 ['OS=="freebsd"', {
742 'defines': [
743 'V8_OS_BSD=1',
744 'V8_OS_FREEBSD=1',
745 'V8_OS_POSIX=1'
746 ],
725 'link_settings': { 747 'link_settings': {
726 'libraries': [ 748 'libraries': [
727 '-L/usr/local/lib -lexecinfo', 749 '-L/usr/local/lib -lexecinfo',
728 ]}, 750 ]},
729 'sources': [ 751 'sources': [
730 '../../src/platform-freebsd.cc', 752 '../../src/platform-freebsd.cc',
731 '../../src/platform-posix.cc' 753 '../../src/platform-posix.cc'
732 ], 754 ],
733 } 755 }
734 ], 756 ],
735 ['OS=="openbsd"', { 757 ['OS=="openbsd"', {
758 'defines': [
759 'V8_OS_BSD=1',
760 'V8_OS_OPENBSD=1',
761 'V8_OS_POSIX=1'
762 ],
736 'link_settings': { 763 'link_settings': {
737 'libraries': [ 764 'libraries': [
738 '-L/usr/local/lib -lexecinfo', 765 '-L/usr/local/lib -lexecinfo',
739 ]}, 766 ]},
740 'sources': [ 767 'sources': [
741 '../../src/platform-openbsd.cc', 768 '../../src/platform-openbsd.cc',
742 '../../src/platform-posix.cc' 769 '../../src/platform-posix.cc'
743 ], 770 ],
744 } 771 }
745 ], 772 ],
746 ['OS=="netbsd"', { 773 ['OS=="netbsd"', {
774 'defines': [
775 'V8_OS_BSD=1',
776 'V8_OS_NETBSD=1',
777 'V8_OS_POSIX=1'
778 ],
747 'link_settings': { 779 'link_settings': {
748 'libraries': [ 780 'libraries': [
749 '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo', 781 '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo',
750 ]}, 782 ]},
751 'sources': [ 783 'sources': [
752 '../../src/platform-openbsd.cc', 784 '../../src/platform-openbsd.cc',
753 '../../src/platform-posix.cc' 785 '../../src/platform-posix.cc'
754 ], 786 ],
755 } 787 }
756 ], 788 ],
757 ['OS=="solaris"', { 789 ['OS=="solaris"', {
790 'defines': [
791 'V8_OS_POSIX=1',
792 'V8_OS_SOLARIS=1'
793 ],
758 'link_settings': { 794 'link_settings': {
759 'libraries': [ 795 'libraries': [
760 '-lsocket -lnsl', 796 '-lsocket -lnsl',
761 ]}, 797 ]},
762 'sources': [ 798 'sources': [
763 '../../src/platform-solaris.cc', 799 '../../src/platform-solaris.cc',
764 '../../src/platform-posix.cc', 800 '../../src/platform-posix.cc',
765 ], 801 ],
766 } 802 }
767 ], 803 ],
768 ['OS=="mac"', { 804 ['OS=="mac"', {
805 'defines': [
806 'V8_OS_BSD=1',
807 'V8_OS_MACOSX=1',
808 'V8_OS_POSIX=1'
809 ],
769 'sources': [ 810 'sources': [
770 '../../src/platform-macos.cc', 811 '../../src/platform-macos.cc',
771 '../../src/platform-posix.cc' 812 '../../src/platform-posix.cc'
772 ]}, 813 ]},
773 ], 814 ],
774 ['OS=="win"', { 815 ['OS=="win"', {
775 'variables': { 816 'variables': {
776 'gyp_generators': '<!(echo $GYP_GENERATORS)', 817 'gyp_generators': '<!(echo $GYP_GENERATORS)',
777 }, 818 },
778 'conditions': [ 819 'conditions': [
779 ['gyp_generators=="make"', { 820 ['gyp_generators=="make"', {
780 'variables': { 821 'variables': {
781 'build_env': '<!(uname -o)', 822 'build_env': '<!(uname -o)',
782 }, 823 },
783 'conditions': [ 824 'conditions': [
784 ['build_env=="Cygwin"', { 825 ['build_env=="Cygwin"', {
826 'defines': [
827 'V8_OS_CYGWIN=1',
828 'V8_OS_POSIX=1'
829 ],
785 'sources': [ 830 'sources': [
786 '../../src/platform-cygwin.cc', 831 '../../src/platform-cygwin.cc',
787 '../../src/platform-posix.cc', 832 '../../src/platform-posix.cc',
788 ], 833 ],
789 }, { 834 }, {
835 'defines': [
836 'V8_OS_WIN=1'
837 ],
790 'sources': [ 838 'sources': [
791 '../../src/platform-win32.cc', 839 '../../src/platform-win32.cc',
792 '../../src/win32-math.h', 840 '../../src/win32-math.h',
793 '../../src/win32-math.cc', 841 '../../src/win32-math.cc',
794 ], 842 ],
795 }], 843 }],
796 ], 844 ],
797 'link_settings': { 845 'link_settings': {
798 'libraries': [ '-lwinmm', '-lws2_32' ], 846 'libraries': [ '-lwinmm', '-lws2_32' ],
799 }, 847 },
800 }, { 848 }, {
849 'defines': [
850 'V8_OS_WIN=1'
851 ],
801 'sources': [ 852 'sources': [
802 '../../src/platform-win32.cc', 853 '../../src/platform-win32.cc',
803 '../../src/win32-math.h', 854 '../../src/win32-math.h',
804 '../../src/win32-math.cc', 855 '../../src/win32-math.cc',
805 ], 856 ],
806 'msvs_disabled_warnings': [4351, 4355, 4800], 857 'msvs_disabled_warnings': [4351, 4355, 4800],
807 'link_settings': { 858 'link_settings': {
808 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], 859 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
809 }, 860 },
810 }], 861 }],
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 }], 1083 }],
1033 ['v8_compress_startup_data=="bz2"', { 1084 ['v8_compress_startup_data=="bz2"', {
1034 'libraries': [ 1085 'libraries': [
1035 '-lbz2', 1086 '-lbz2',
1036 ] 1087 ]
1037 }], 1088 }],
1038 ], 1089 ],
1039 }, 1090 },
1040 ], 1091 ],
1041 } 1092 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698