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

Side by Side Diff: third_party/openh264/buildnotes.txt

Issue 1403893007: Adding third_party/openh264/src, build files and unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename var to 'use_openh264', add OpenH264 to 'all' target of GN Created 5 years, 1 month 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 # Notes, just me trying to understand the .mk files with pseudocode...
torbjorng 2015/11/12 11:02:02 This file should probably be removed.
hbos_chromium 2015/11/16 16:56:29 I don't include this in the reuploaded version.
2 # Probably the main thing about building asm is making sure the -D defines are
3 # set for each platform, and maybe -fPIC, etc compiler options are essential.
4
5 # --------- arch.mk ---------
6 # if ARCH == *86 || ARCH == x86_64
7 # x86-common.mk
8 # if ARCH == arm* && ARCH != arm64 && USE_ASM
9 # ASM_ARCH = arm
10 # ASM_FLAGS += codec/common/arm
11 # CFLAGS += -DHAVE_NEON
12 # if ARCH == arm64 || aarch64
13 # ASM_ARCH = arm64
14 # ASMFLAGS += codec/common/arm64
15 # CFLAGS += -DHAVE_NEON_AARCH64
16
17 # --------- x86-common.mk ---------
18 # CFLAGS_M32 = -m32
19 # CFLAGS_M64 = -m64
20 # ASM_INCLUDES = codec/common/x86
21 # if ENABLE64BIT
22 # ARCH = x86_64
23 # else
24 # ARCH = x86
25 # if ARCH == x86_64
26 # CFLAGS += -m64
27 # LDFLAGS += -m64
28 # ASMFLAGS_PLATFORM = -DUNIX64
29 # else
30 # CFLAGS += -m32
31 # LDFLAGS += -m32
32 # ASMFLAGS_PLATFORM = -DX86_32
33 # if USE_ASM
34 # CFLAGS += -DX86_ASM
35 # if ARCH != x86_64
36 # CFLAGS += -DX86_32_ASM
37 # ASM_ARCH = x86
38 # ASM = nasm
39 # ASMFLAGS += <ASMFLAGS_PLATFORM>
40
41 # --------- platform-linux.mk ---------
42 # include arch.mk
43 #
44 # <SHAREDLIBSUFFIX, SHAREDLIBSUFFIXVER, SHLDFLAGS, AR_OPTS set...>
45 #
46 # CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
47 # if ASM_ARCH == x86
48 # if ARCH == x86_64
49 # ASMFLAGS += -f elf64
50 # else
51 # ASMFLAGS += -f elf
52 # if ASM_ARCH == arm
53 # ASMFLAGS += -march=armv7-a -mfpu=neon
54 #
55 # if CXX == clang++
56 # CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal
57
58 # --------- platform-bsd.mk ---------
59 # ...
60 # do we care about this? there's platform-darwin.mk as well for mac
61
62 # --------- platform-darwin.mk ---------
63 # include arch.mk
64 #
65 # <SHAREDLIB_DIR, SHAREDLIBSUFFIX, SHAREDLIBSUFFIXVER, SHLDFLAGS, SHARED set... >
66 #
67 # CFLAGS += -Wall -fPIC -MMD -MP
68 # LDFLAGS += -lpthread
69 # if ASM_ARCH == x86
70 # ASMFLAGS += -DPREFIX
71 # if ARCH == x86_64
72 # ASMFLAGS += -f macho64
73 # else
74 # ASMFLAGS += -f macho
75 # LDFLAGS += -read_only_relocs suppress
76
77 # --------- platform-ios.mk ---------
78 # ARCH = armv7
79 # include platform-darwin-mk
80 # CXX = clang++
81 # CC clang
82 # if ARCH == *86 || ARCH == x86_64
83 # SDKTYPE = iPhoneSimulator
84 # else
85 # SDKTYPE = iPhoneOS
86 # SDK = <... shell command for sdk version ...>
87 # SDK_MIN = 5.1
88 #
89 # <XCODE, SDKROOT set...>
90 #
91 # CFLAGS += <...>
92 # LDFLAGS += <...>
93
94 # --------- platform-msvc.mk ---------
95 # --------- platform-msvc-app.mk ---------
96 # --------- platform-msvc-wp.mk ---------
97 # Visual Studio builds (win and win phone), don't care about these?
98 # - Actually Visual Studio is used to build win, not mingw? Care!
99
100 # --------- platform-mingw_nt.mk ---------
101 # i.e. Windows when not building with Visual Studio?
102 # include x86-common.mk
103 #
104 # <SHAREDLIB_DIR, SHAREDLIBSUFFIX, SHAREDLIBSUFFIXVER, EXTRA_LIBRARY, SHLDFLAGS set...>
105 #
106 # CFLAGS += -MMD -MP
107 # LDFLAGS += # empty line wtf?
108 # if ARCH == x86_64
109 # ASMFLAGS += -f win64
110 # ASMFLAGS_PLATFORM = -DWIN64
111 # CC = x86_64-w64-mingw32-gcc
112 # CXX = x86_64-w64-mingw32-g++
113 # AR = x86_64-w64-mingw32-ar
114 # else
115 # ASMFLAGS += -f win32 -DPREFIX
116 # EXEEXT = .exe
117
118 # --------- platform-android.mk ---------
119 # ARCH = arm
120 # include arch.mk
121 #
122 # <SHAREDLIBSUFFIX, SHAREDLIBSUFFIXVER, SHLDFLAGS, NDKLEVEL set...>
123 #
124 # if ARCH == arm
125 # if APP_ABI != armeabi
126 # CFLAGS += -march=armv7-a -mfloat-abi=softfp
127 # CFLAGS += -mfpu=vfpv3-d16
128 # LDFLAGS += -march=armv7-a -Wl,--fix-cortex-a8
129 # APP_ABI = armeabi-v7a
130 # else if ARCH == arm64
131 # APP_ABI = arm64_v8a
132 # else if ARCH == x86
133 # if USE_ASM
134 # ASMFLAGS += -f elf64
135 # else
136 # APP_ABI = <ARCH>
137 #
138 # ifndef NDKROOT
139 # <ERROR NDKROOT is not set>
140 # ifndef TARGET
141 # <ERROR TARGET is not set>
142 #
143 # ...
144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698