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

Side by Side Diff: ffmpeg.gyp

Issue 8275011: add support for OpenBSD in ffmpeg (Closed) Base URL: http://git.chromium.org/chromium/deps/ffmpeg/source.git@master
Patch Set: Created 9 years, 2 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
« no previous file with comments | « config/Chromium/openbsd/x64/config.asm ('k') | 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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # There's a couple key GYP variables that control how FFmpeg is built: 5 # There's a couple key GYP variables that control how FFmpeg is built:
6 # ffmpeg_branding 6 # ffmpeg_branding
7 # Controls whether we build the Chromium or Google Chrome version of 7 # Controls whether we build the Chromium or Google Chrome version of
8 # FFmpeg. The Google Chrome version contains additional codecs. 8 # FFmpeg. The Google Chrome version contains additional codecs.
9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS. 9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS.
10 # use_system_ffmpeg 10 # use_system_ffmpeg
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 # Allow overridding the selection of which FFmpeg binaries to copy via an 44 # Allow overridding the selection of which FFmpeg binaries to copy via an
45 # environment variable. Affects the ffmpeg_binaries target. 45 # environment variable. Affects the ffmpeg_binaries target.
46 46
47 'conditions': [ 47 'conditions': [
48 ['armv7==1 and arm_neon==1', { 48 ['armv7==1 and arm_neon==1', {
49 # Need a separate config for arm+neon vs arm 49 # Need a separate config for arm+neon vs arm
50 'ffmpeg_config%': 'arm-neon', 50 'ffmpeg_config%': 'arm-neon',
51 }, { 51 }, {
52 'ffmpeg_config%': '<(target_arch)', 52 'ffmpeg_config%': '<(target_arch)',
53 }], 53 }],
54 ['OS=="mac" or OS=="win"', { 54 ['OS=="mac" or OS=="win" or OS=="openbsd"', {
55 'os_config%': '<(OS)', 55 'os_config%': '<(OS)',
56 }, { # all other Unix OS's use the linux config 56 }, { # all other Unix OS's use the linux config
57 'os_config%': 'linux', 57 'os_config%': 'linux',
58 }], 58 }],
59 ['chromeos==1', { 59 ['chromeos==1', {
60 'ffmpeg_branding%': '<(branding)OS', 60 'ffmpeg_branding%': '<(branding)OS',
61 }, { # otherwise, assume Chrome/Chromium. 61 }, { # otherwise, assume Chrome/Chromium.
62 'ffmpeg_branding%': '<(branding)', 62 'ffmpeg_branding%': '<(branding)',
63 }], 63 }],
64 ], 64 ],
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 '-m', 'amd64', 221 '-m', 'amd64',
222 '-DPIC', 222 '-DPIC',
223 # The next two lines are needed to enable AVX assembly. 223 # The next two lines are needed to enable AVX assembly.
224 '-Iconfig/<(ffmpeg_branding)/<(os_config)/<(ffmpeg_config) ', 224 '-Iconfig/<(ffmpeg_branding)/<(os_config)/<(ffmpeg_config) ',
225 '-Pconfig.asm', 225 '-Pconfig.asm',
226 ], 226 ],
227 }], 227 }],
228 ], 228 ],
229 }, 229 },
230 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris " 230 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris "
231 ['OS=="openbsd"', {
232 # OpenBSD's gcc (4.2.1) does not support this flag
233 'cflags!': [
234 '-fno-signed-zeros',
235 ],
236 }],
231 ['OS=="mac"', { 237 ['OS=="mac"', {
232 'conditions': [ 238 'conditions': [
233 ['mac_breakpad==1', { 239 ['mac_breakpad==1', {
234 'variables': { 240 'variables': {
235 # A real .dSYM is needed for dump_syms to operate on. 241 # A real .dSYM is needed for dump_syms to operate on.
236 'mac_real_dsym': 1, 242 'mac_real_dsym': 1,
237 }, 243 },
238 }], 244 }],
239 ], 245 ],
240 'link_settings': { 246 'link_settings': {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 ], # conditions 533 ], # conditions
528 }, 534 },
529 ], # targets 535 ], # targets
530 } 536 }
531 537
532 # Local Variables: 538 # Local Variables:
533 # tab-width:2 539 # tab-width:2
534 # indent-tabs-mode:nil 540 # indent-tabs-mode:nil
535 # End: 541 # End:
536 # vim: set expandtab tabstop=2 shiftwidth=2: 542 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « config/Chromium/openbsd/x64/config.asm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698