1 # Copyright (c) 2009 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 { 8 'target_name': 'pdfsqueeze', 9 'type': 'executable', 10 'sources': [ 11 '../../third_party/pdfsqueeze/pdfsqueeze.m', 12 ], 13 'defines': [ 14 # Use defines to map the full path names that will be used for 15 # the vars into the short forms expected by pdfsqueeze.m. 16 '______third_party_pdfsqueeze_ApplyGenericRGB_qfilter=ApplyGenericRGB_qfilter', 17 '______third_party_pdfsqueeze_ApplyGenericRGB_qfilter_len=ApplyGenericRGB_qfilter_len', 18 ], 19 'include_dirs': [ 20 '<(INTERMEDIATE_DIR)', 21 ], 22 'libraries': [ 23 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 24 '$(SDKROOT)/System/Library/Frameworks/Quartz.framework', 25 ], 26 'actions': [ 27 { 28 'action_name': 'Generate inline filter data', 29 'inputs': [ 30 '../../third_party/pdfsqueeze/ApplyGenericRGB.qfilter', 31 ], 32 'outputs': [ 33 '<(INTERMEDIATE_DIR)/ApplyGenericRGB.h', 34 ], 35 'action': ['xxd', '-i', '<@(_inputs)', '<@(_outputs)'], 36 }, 37 ], 38 }, 39 ], 40 } 41