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

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

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