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

Side by Side Diff: third_party/libvpx/generate_gypi.sh

Issue 1323333002: Copy libvpx from DEPS to src (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
(Empty)
1 #!/bin/bash -e
2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # This script is used to generate .gypi, .gni files and files in the
8 # config/platform directories needed to build libvpx.
9 # Every time libvpx source code is updated just run this script.
10 #
11 # For example:
12 # $ ./generate_gypi.sh
13 #
14 # And this will update all the .gypi, .gni and config files needed.
15 #
16 # !!! It's highly recommended to install yasm before running this script.
17
18 export LC_ALL=C
19 BASE_DIR=$(pwd)
20 LIBVPX_SRC_DIR="source/libvpx"
21 LIBVPX_CONFIG_DIR="source/config"
22
23 # Print license header.
24 # $1 - Output base name
25 function write_license {
26 echo "# This file is generated. Do not edit." >> $1
27 echo "# Copyright (c) 2014 The Chromium Authors. All rights reserved." >> $1
28 echo "# Use of this source code is governed by a BSD-style license that can be " >> $1
29 echo "# found in the LICENSE file." >> $1
30 echo "" >> $1
31 }
32
33 # Print gypi boilerplate header.
34 # $1 - Output base name
35 function write_gypi_header {
36 echo "{" >> $1
37 }
38
39 # Print gypi boilerplate footer.
40 # $1 - Output base name
41 function write_gypi_footer {
42 echo "}" >> $1
43 }
44
45 # Generate a gypi with a list of source files.
46 # $1 - Array name for file list. This is processed with 'declare' below to
47 # regenerate the array locally.
48 # $2 - Output file
49 function write_gypi {
50 # Convert the first argument back in to an array.
51 local readonly file_list=(${!1})
52
53 rm -rf "$2"
54 write_license "$2"
55 write_gypi_header "$2"
56
57 echo " 'sources': [" >> "$2"
58 for f in ${file_list[@]}
59 do
60 echo " '<(libvpx_source)/$f'," >> "$2"
61 done
62 echo " ]," >> "$2"
63
64 write_gypi_footer "$2"
65 }
66
67 # Generate a gni with a list of source files.
68 # $1 - Array name for file list. This is processed with 'declare' below to
69 # regenerate the array locally.
70 # $2 - GN variable name.
71 # $3 - Output file.
72 function write_gni {
73 # Convert the first argument back in to an array.
74 declare -a file_list=("${!1}")
75
76 echo "$2 = [" >> "$3"
77 for f in $file_list
78 do
79 echo " \"//third_party/libvpx/source/libvpx/$f\"," >> "$3"
80 done
81 echo "]" >> "$3"
82 }
83
84 # Target template function
85 # $1 - Array name for file list.
86 # $2 - Output file
87 # $3 - Target name
88 # $4 - Compiler flag
89 function write_target_definition {
90 declare -a sources_list=("${!1}")
91
92 echo " {" >> "$2"
93 echo " 'target_name': '$3'," >> "$2"
94 echo " 'type': 'static_library'," >> "$2"
95 echo " 'include_dirs': [" >> "$2"
96 echo " 'source/config/<(OS_CATEGORY)/<(target_arch_full)'," >> "$2"
97 echo " '<(libvpx_source)'," >> "$2"
98 echo " ]," >> "$2"
99 echo " 'sources': [" >> "$2"
100 for f in $sources_list
101 do
102 echo " '<(libvpx_source)/$f'," >> $2
103 done
104 echo " ]," >> "$2"
105 if [[ $4 == fpu=neon ]]; then
106 echo " 'includes': [ 'ads2gas.gypi' ]," >> "$2"
107 echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> "$2"
108 echo " 'conditions': [" >> $2
109 echo " # Disable GCC LTO in neon targets due to compiler bug" >> "$2"
110 echo " # crbug.com/408997" >> "$2"
111 echo " ['clang==0 and use_lto==1', {" >> "$2"
112 echo " 'cflags!': [" >> "$2"
113 echo " '-flto'," >> "$2"
114 echo " '-ffat-lto-objects'," >> "$2"
115 echo " ]," >> "$2"
116 echo " }]," >> "$2"
117 echo " ]," >> "$2"
118 fi
119 echo " 'cflags': [ '-m$4', ]," >> "$2"
120 echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> "$2"
121 if [[ $4 == avx2 ]]; then
122 echo " 'msvs_settings': {" >> "$2"
123 echo " 'VCCLCompilerTool': {" >> "$2"
124 echo " 'EnableEnhancedInstructionSet': '5', # /arch:AVX2" >> "$2"
125 echo " }," >> "$2"
126 echo " }," >> "$2"
127 elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then
128 echo " 'conditions': [" >> "$2"
129 echo " ['OS==\"win\" and clang==1', {" >> "$2"
130 echo " # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe" >> "$2"
131 echo " # doesn't need it for intrinsics. clang-cl does need it, thoug h." >> "$2"
132 echo " 'msvs_settings': {" >> "$2"
133 echo " 'VCCLCompilerTool': { 'AdditionalOptions': [ '-m$4' ] }," >> "$2"
134 echo " }," >> "$2"
135 echo " }]," >> "$2"
136 echo " ]," >> "$2"
137 fi
138 echo " }," >> "$2"
139 }
140
141
142 # Generate a gypi which applies additional compiler flags based on the file
143 # name.
144 # $1 - Array name for file list.
145 # $2 - Output file
146 function write_intrinsics_gypi {
147 declare -a file_list=("${!1}")
148
149 local mmx_sources=$(echo "$file_list" | grep '_mmx\.c$')
150 local sse2_sources=$(echo "$file_list" | grep '_sse2\.c$')
151 local sse3_sources=$(echo "$file_list" | grep '_sse3\.c$')
152 local ssse3_sources=$(echo "$file_list" | grep '_ssse3\.c$')
153 local sse4_1_sources=$(echo "$file_list" | grep '_sse4\.c$')
154 local avx_sources=$(echo "$file_list" | grep '_avx\.c$')
155 local avx2_sources=$(echo "$file_list" | grep '_avx2\.c$')
156 local neon_sources=$(echo "$file_list" | grep '_neon\.c$\|\.asm$')
157
158 # Intrinsic functions and files are in flux. We can selectively generate them
159 # but we can not selectively include them in libvpx.gyp. Throw some errors
160 # when new targets are needed.
161
162 rm -rf "$2"
163 write_license "$2"
164 write_gypi_header "$2"
165
166 echo " 'targets': [" >> "$2"
167
168 # x86[_64]
169 if [ 0 -ne ${#mmx_sources} ]; then
170 write_target_definition mmx_sources[@] "$2" libvpx_intrinsics_mmx mmx
171 fi
172 if [ 0 -ne ${#sse2_sources} ]; then
173 write_target_definition sse2_sources[@] "$2" libvpx_intrinsics_sse2 sse2
174 fi
175 if [ 0 -ne ${#sse3_sources} ]; then
176 #write_target_definition sse3_sources[@] "$2" libvpx_intrinsics_sse3 sse3
177 echo "ERROR: Uncomment sse3 sections in libvpx.gyp"
178 exit 1
179 fi
180 if [ 0 -ne ${#ssse3_sources} ]; then
181 write_target_definition ssse3_sources[@] "$2" libvpx_intrinsics_ssse3 ssse3
182 fi
183 if [ 0 -ne ${#sse4_1_sources} ]; then
184 write_target_definition sse4_1_sources[@] "$2" libvpx_intrinsics_sse4_1 sse4 .1
185 fi
186 if [ 0 -ne ${#avx_sources} ]; then
187 #write_target_definition avx_sources[@] "$2" libvpx_intrinsics_avx avx
188 echo "ERROR: Uncomment avx sections in libvpx.gyp"
189 exit 1
190 fi
191 if [ 0 -ne ${#avx2_sources} ]; then
192 write_target_definition avx2_sources[@] "$2" libvpx_intrinsics_avx2 avx2
193 fi
194
195 # arm neon
196 if [ 0 -ne ${#neon_sources} ]; then
197 write_target_definition neon_sources[@] "$2" libvpx_intrinsics_neon fpu=neon
198 fi
199
200 echo " ]," >> "$2"
201
202 write_gypi_footer "$2"
203 }
204
205 # Convert a list of source files into gypi and gni files.
206 # $1 - Input file.
207 # $2 - Output gypi file base. Will generate additional .gypi files when
208 # different compilation flags are required.
209 function convert_srcs_to_project_files {
210 # Do the following here:
211 # 1. Filter .c, .h, .s, .S and .asm files.
212 # 2. Move certain files to a separate include to allow applying different
213 # compiler options.
214 # 3. Replace .asm.s to .asm because gyp will do the conversion.
215
216 local source_list=$(grep -E '(\.c|\.h|\.S|\.s|\.asm)$' $1)
217
218 # Not sure why vpx_config is not included.
219 source_list=$(echo "$source_list" | grep -v 'vpx_config\.c')
220
221 # The actual ARM files end in .asm. We have rules to translate them to .S
222 source_list=$(echo "$source_list" | sed s/\.asm\.s$/.asm/)
223
224 # Select all x86 files ending with .c
225 local intrinsic_list=$(echo "$source_list" | \
226 egrep '(mmx|sse2|sse3|ssse3|sse4|avx|avx2).c$')
227
228 # Select all neon files ending in C but only when building in RTCD mode
229 if [ "libvpx_srcs_arm_neon_cpu_detect" == "$2" ]; then
230 # Select all arm neon files ending in _neon.c and all asm files.
231 # The asm files need to be included in the intrinsics target because
232 # they need the -mfpu=neon flag.
233 # the pattern may need to be updated if vpx_scale gets intrinics
234 local intrinsic_list=$(echo "$source_list" | \
235 egrep 'neon.*(\.c|\.asm)$')
236 fi
237
238 # Remove these files from the main list.
239 source_list=$(comm -23 <(echo "$source_list") <(echo "$intrinsic_list"))
240
241 local x86_list=$(echo "$source_list" | egrep '/x86/')
242
243 write_gypi source_list "$BASE_DIR/$2.gypi"
244
245 # All the files are in a single "element." Check if the first element has
246 # length 0.
247 if [ 0 -ne ${#intrinsic_list} ]; then
248 write_intrinsics_gypi intrinsic_list[@] "$BASE_DIR/$2_intrinsics.gypi"
249 fi
250
251 # Write a single .gni file that includes all source files for all archs.
252 if [ 0 -ne ${#x86_list} ]; then
253 local c_sources=$(echo "$source_list" | egrep '.(c|h)$')
254 local assembly_sources=$(echo "$source_list" | egrep '.asm$')
255 local mmx_sources=$(echo "$intrinsic_list" | grep '_mmx\.c$')
256 local sse2_sources=$(echo "$intrinsic_list" | grep '_sse2\.c$')
257 local sse3_sources=$(echo "$intrinsic_list" | grep '_sse3\.c$')
258 local ssse3_sources=$(echo "$intrinsic_list" | grep '_ssse3\.c$')
259 local sse4_1_sources=$(echo "$intrinsic_list" | grep '_sse4\.c$')
260 local avx_sources=$(echo "$intrinsic_list" | grep '_avx\.c$')
261 local avx2_sources=$(echo "$intrinsic_list" | grep '_avx2\.c$')
262
263 write_gni c_sources $2 "$BASE_DIR/libvpx_srcs.gni"
264 write_gni assembly_sources $2_assembly "$BASE_DIR/libvpx_srcs.gni"
265 write_gni mmx_sources $2_mmx "$BASE_DIR/libvpx_srcs.gni"
266 write_gni sse2_sources $2_sse2 "$BASE_DIR/libvpx_srcs.gni"
267 write_gni sse3_sources $2_sse3 "$BASE_DIR/libvpx_srcs.gni"
268 write_gni ssse3_sources $2_ssse3 "$BASE_DIR/libvpx_srcs.gni"
269 write_gni sse4_1_sources $2_sse4_1 "$BASE_DIR/libvpx_srcs.gni"
270 write_gni avx_sources $2_avx "$BASE_DIR/libvpx_srcs.gni"
271 write_gni avx2_sources $2_avx2 "$BASE_DIR/libvpx_srcs.gni"
272 else
273 local c_sources=$(echo "$source_list" | egrep '.(c|h)$')
274 local assembly_sources=$(echo -e "$source_list\n$intrinsic_list" | \
275 egrep '.asm$')
276 local neon_sources=$(echo "$intrinsic_list" | grep '_neon\.c$')
277 write_gni c_sources $2 "$BASE_DIR/libvpx_srcs.gni"
278 write_gni assembly_sources $2_assembly "$BASE_DIR/libvpx_srcs.gni"
279 if [ 0 -ne ${#neon_sources} ]; then
280 write_gni neon_sources $2_neon "$BASE_DIR/libvpx_srcs.gni"
281 fi
282 fi
283 }
284
285 # Clean files from previous make.
286 function make_clean {
287 make clean > /dev/null
288 rm -f libvpx_srcs.txt
289 }
290
291 # Lint a pair of vpx_config.h and vpx_config.asm to make sure they match.
292 # $1 - Header file directory.
293 function lint_config {
294 # mips does not contain any assembly so the header does not need to be
295 # compared to the asm.
296 if [[ "$1" != *mipsel && "$1" != *mips64el ]]; then
297 $BASE_DIR/lint_config.sh \
298 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \
299 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm
300 fi
301 }
302
303 # Print the configuration.
304 # $1 - Header file directory.
305 function print_config {
306 $BASE_DIR/lint_config.sh -p \
307 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \
308 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm
309 }
310
311 # Print the configuration from Header file.
312 # This function is an abridged version of print_config which does not use
313 # lint_config and it does not require existence of vpx_config.asm.
314 # $1 - Header file directory.
315 function print_config_basic {
316 combined_config="$(cat $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \
317 | grep -E ' +[01] *$')"
318 combined_config="$(echo "$combined_config" | grep -v DO1STROUNDING)"
319 combined_config="$(echo "$combined_config" | sed 's/[ \t]//g')"
320 combined_config="$(echo "$combined_config" | sed 's/.*define//')"
321 combined_config="$(echo "$combined_config" | sed 's/0$/=no/')"
322 combined_config="$(echo "$combined_config" | sed 's/1$/=yes/')"
323 echo "$combined_config" | sort | uniq
324 }
325
326 # Generate *_rtcd.h files.
327 # $1 - Header file directory.
328 # $2 - Architecture.
329 function gen_rtcd_header {
330 echo "Generate $LIBVPX_CONFIG_DIR/$1/*_rtcd.h files."
331
332 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config
333 if [[ "$2" == "mipsel" || "$2" == "mips64el" ]]; then
334 print_config_basic $1 > $BASE_DIR/$TEMP_DIR/libvpx.config
335 else
336 $BASE_DIR/lint_config.sh -p \
337 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \
338 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \
339 -o $BASE_DIR/$TEMP_DIR/libvpx.config
340 fi
341
342 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
343 --arch=$2 \
344 --sym=vp8_rtcd \
345 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
346 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.pl \
347 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h
348
349 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
350 --arch=$2 \
351 --sym=vp9_rtcd \
352 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
353 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.pl \
354 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h
355
356 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
357 --arch=$2 \
358 --sym=vpx_scale_rtcd \
359 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
360 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.pl \
361 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h
362
363 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
364 --arch=$2 \
365 --sym=vpx_dsp_rtcd \
366 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
367 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_dsp/vpx_dsp_rtcd_defs.pl \
368 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_dsp_rtcd.h
369
370 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config
371 }
372
373 # Generate Config files. "--enable-external-build" must be set to skip
374 # detection of capabilities on specific targets.
375 # $1 - Header file directory.
376 # $2 - Config command line.
377 function gen_config_files {
378 ./configure $2 > /dev/null
379
380 # Disable HAVE_UNISTD_H as it causes vp8 to try to detect how many cpus
381 # available, which doesn't work from iniside a sandbox on linux.
382 ( echo '/HAVE_UNISTD_H/s/[01]/0/' ; echo 'w' ; echo 'q' ) | ed -s vpx_config.h
383
384 # Generate vpx_config.asm. Do not create one for mips.
385 if [[ "$1" != *mipsel && "$1" != *mips64el ]]; then
386 if [[ "$1" == *x64* ]] || [[ "$1" == *ia32* ]]; then
387 egrep "#define [A-Z0-9_]+ [01]" vpx_config.h | awk '{print "%define " $2 " " $3}' > vpx_config.asm
388 else
389 egrep "#define [A-Z0-9_]+ [01]" vpx_config.h | awk '{print $2 " EQU " $3}' | perl $BASE_DIR/$LIBVPX_SRC_DIR/build/make/ads2gas.pl > vpx_config.asm
390 fi
391 fi
392
393 cp vpx_config.* $BASE_DIR/$LIBVPX_CONFIG_DIR/$1
394 make_clean
395 rm -rf vpx_config.*
396 }
397
398 echo "Create temporary directory."
399 TEMP_DIR="$LIBVPX_SRC_DIR.temp"
400 rm -rf $TEMP_DIR
401 cp -R $LIBVPX_SRC_DIR $TEMP_DIR
402 cd $TEMP_DIR
403
404 echo "Generate config files."
405 all_platforms="--enable-external-build --enable-postproc --disable-install-srcs --enable-multi-res-encoding --enable-temporal-denoising --disable-unit-tests --d isable-install-docs --disable-examples --enable-vp9-temporal-denoising --enable- vp9-postproc --size-limit=16384x16384"
406 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}"
407 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}"
408 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs --disable-edsp ${all_plat forms}"
409 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only --disable-edsp ${all_platforms}"
410 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect --disable-edsp ${all_platfo rms}"
411 gen_config_files linux/arm64 "--force-target=armv8-linux-gcc --enable-pic --enab le-realtime-only --disable-edsp ${all_platforms}"
412 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}"
413 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}"
414 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}"
415 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}"
416 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}"
417 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}"
418 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms}"
419 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}"
420
421 echo "Remove temporary directory."
422 cd $BASE_DIR
423 rm -rf $TEMP_DIR
424
425 echo "Lint libvpx configuration."
426 lint_config linux/ia32
427 lint_config linux/x64
428 lint_config linux/arm
429 lint_config linux/arm-neon
430 lint_config linux/arm-neon-cpu-detect
431 lint_config linux/arm64
432 lint_config linux/mipsel
433 lint_config linux/mips64el
434 lint_config linux/generic
435 lint_config win/ia32
436 lint_config win/x64
437 lint_config mac/ia32
438 lint_config mac/x64
439 lint_config nacl
440
441 echo "Create temporary directory."
442 TEMP_DIR="$LIBVPX_SRC_DIR.temp"
443 rm -rf $TEMP_DIR
444 cp -R $LIBVPX_SRC_DIR $TEMP_DIR
445 cd $TEMP_DIR
446
447 gen_rtcd_header linux/ia32 x86
448 gen_rtcd_header linux/x64 x86_64
449 gen_rtcd_header linux/arm armv6
450 gen_rtcd_header linux/arm-neon armv7
451 gen_rtcd_header linux/arm-neon-cpu-detect armv7
452 gen_rtcd_header linux/arm64 armv8
453 gen_rtcd_header linux/mipsel mipsel
454 gen_rtcd_header linux/mips64el mips64el
455 gen_rtcd_header linux/generic generic
456 gen_rtcd_header win/ia32 x86
457 gen_rtcd_header win/x64 x86_64
458 gen_rtcd_header mac/ia32 x86
459 gen_rtcd_header mac/x64 x86_64
460 gen_rtcd_header nacl nacl
461
462 echo "Prepare Makefile."
463 ./configure --target=generic-gnu > /dev/null
464 make_clean
465
466 # Remove existing .gni file.
467 rm -rf $BASE_DIR/libvpx_srcs.gni
468 write_license $BASE_DIR/libvpx_srcs.gni
469
470 echo "Generate X86 source list."
471 config=$(print_config linux/ia32)
472 make_clean
473 make libvpx_srcs.txt target=libs $config > /dev/null
474 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_x86
475
476 # Copy vpx_version.h. The file should be the same for all platforms.
477 cp vpx_version.h $BASE_DIR/$LIBVPX_CONFIG_DIR
478
479 echo "Generate X86_64 source list."
480 config=$(print_config linux/x64)
481 make_clean
482 make libvpx_srcs.txt target=libs $config > /dev/null
483 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_x86_64
484
485 echo "Generate ARM source list."
486 config=$(print_config linux/arm)
487 make_clean
488 make libvpx_srcs.txt target=libs $config > /dev/null
489 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm
490
491 echo "Generate ARM NEON source list."
492 config=$(print_config linux/arm-neon)
493 make_clean
494 make libvpx_srcs.txt target=libs $config > /dev/null
495 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon
496
497 echo "Generate ARM NEON CPU DETECT source list."
498 config=$(print_config linux/arm-neon-cpu-detect)
499 make_clean
500 make libvpx_srcs.txt target=libs $config > /dev/null
501 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon_cpu_detect
502
503 echo "Generate ARM64 source list."
504 config=$(print_config linux/arm64)
505 make_clean
506 make libvpx_srcs.txt target=libs $config > /dev/null
507 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm64
508
509 echo "Generate MIPS source list."
510 config=$(print_config_basic linux/mipsel)
511 make_clean
512 make libvpx_srcs.txt target=libs $config > /dev/null
513 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_mips
514
515 echo "MIPS64 source list is identical to MIPS source list. No need to generate i t."
516
517 echo "Generate NaCl source list."
518 config=$(print_config_basic nacl)
519 make_clean
520 make libvpx_srcs.txt target=libs $config > /dev/null
521 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_nacl
522
523 echo "Generate GENERIC source list."
524 config=$(print_config_basic linux/generic)
525 make_clean
526 make libvpx_srcs.txt target=libs $config > /dev/null
527 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_generic
528
529 echo "Remove temporary directory."
530 cd $BASE_DIR
531 rm -rf $TEMP_DIR
532
533 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698