OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 # libvpx_lib is currently not being used since we use libvpx inside |
| 8 # libavcodec. Keeping this just in case we need this later. |
| 9 { |
| 10 'target_name': 'libvpx_lib', |
| 11 'type': 'none', |
| 12 'variables': { |
| 13 'libvpx_lib': 'libvpx.a', |
| 14 }, |
| 15 'conditions': [ |
| 16 # This section specifies the folder for looking for libvpx.a. |
| 17 # |
| 18 ['OS=="linux" and target_arch=="ia32"', { |
| 19 'variables': { |
| 20 'libvpx_path': 'lib/linux/ia32', |
| 21 }, |
| 22 }], |
| 23 ['OS=="linux" and target_arch=="x64"', { |
| 24 'variables': { |
| 25 'libvpx_path': 'lib/linux/x64', |
| 26 }, |
| 27 }], |
| 28 ['OS=="linux" and target_arch=="arm" and arm_neon==1', { |
| 29 'variables': { |
| 30 'libvpx_path': 'lib/linux/arm-neon', |
| 31 }, |
| 32 }], |
| 33 ['OS=="linux" and target_arch=="arm" and arm_neon==0', { |
| 34 'variables': { |
| 35 'libvpx_path': 'lib/linux/arm', |
| 36 }, |
| 37 }], |
| 38 ['OS=="win"', { |
| 39 'variables': { |
| 40 'libvpx_path': 'lib/win/ia32', |
| 41 }, |
| 42 }], |
| 43 ['OS=="mac"', { |
| 44 'variables': { |
| 45 'libvpx_path': 'lib/mac/ia32', |
| 46 }, |
| 47 }], |
| 48 ], |
| 49 'actions': [ |
| 50 { |
| 51 'action_name': 'copy_lib', |
| 52 'inputs': [ |
| 53 '<(libvpx_path)/<(libvpx_lib)', |
| 54 ], |
| 55 'outputs': [ |
| 56 '<(SHARED_INTERMEDIATE_DIR)/<(libvpx_lib)', |
| 57 ], |
| 58 'action': [ |
| 59 'cp', |
| 60 '<(libvpx_path)/<(libvpx_lib)', |
| 61 '<(SHARED_INTERMEDIATE_DIR)/<(libvpx_lib)', |
| 62 ], |
| 63 'message': 'Copying libvpx.a into <(SHARED_INTERMEDIATE_DIR)', |
| 64 }, |
| 65 ], |
| 66 'all_dependent_settings': { |
| 67 'link_settings': { |
| 68 'libraries': [ |
| 69 '<(SHARED_INTERMEDIATE_DIR)/<(libvpx_lib)', |
| 70 ], |
| 71 }, |
| 72 }, |
| 73 }, |
| 74 { |
| 75 'target_name': 'libvpx_include', |
| 76 'type': 'none', |
| 77 'direct_dependent_settings': { |
| 78 'include_dirs': [ |
| 79 'include', |
| 80 ], |
| 81 }, |
| 82 } |
| 83 ], |
| 84 } |
| 85 |
| 86 # Local Variables: |
| 87 # tab-width:2 |
| 88 # indent-tabs-mode:nil |
| 89 # End: |
| 90 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |