summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DEPS7
-rw-r--r--build_gyp/all.gyp17
-rwxr-xr-xbuild_gyp/gyp_pdfium71
-rw-r--r--build_gyp/gyp_pdfium.py8
-rw-r--r--build_gyp/set_clang_warning_flags.gypi58
-rw-r--r--build_gyp/standalone.gypi591
-rw-r--r--pdfium.gyp1176
-rw-r--r--samples/samples.gyp100
-rw-r--r--testing/gmock.gyp57
-rw-r--r--testing/gtest.gyp175
-rw-r--r--testing/libfuzzer/fuzzers.gyp171
-rw-r--r--third_party/third_party.gyp477
-rw-r--r--xfa.gyp618
13 files changed, 1 insertions, 3525 deletions
diff --git a/DEPS b/DEPS
index 7e32009166..d168db760a 100644
--- a/DEPS
+++ b/DEPS
@@ -50,6 +50,7 @@ deps = {
Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" +
Var('gen_library_loader_revision'),
+ # TODO(GYP): Remove this when no tools rely on GYP anymore.
"tools/gyp":
Var('chromium_git') + '/external/gyp.git' + '@' + 'c61b0b35c8396bfd59efc6cfc11401d912b0f510',
@@ -138,12 +139,6 @@ hooks = [
'--running-as-hook'
],
},
- {
- # A change to a .gyp, .gypi, or to GYP itself should run the generator.
- 'name': 'gyp',
- 'pattern': '.',
- 'action': ['python', 'pdfium/build_gyp/gyp_pdfium'],
- },
# Pull clang-format binaries using checked-in hashes.
{
'name': 'clang_format_win',
diff --git a/build_gyp/all.gyp b/build_gyp/all.gyp
deleted file mode 100644
index 47097e39b4..0000000000
--- a/build_gyp/all.gyp
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'targets': [
- {
- 'target_name': 'All',
- 'type': 'none',
- 'dependencies': [
- '../pdfium.gyp:*',
- '../samples/samples.gyp:*',
- '../testing/libfuzzer/fuzzers.gyp:*',
- ],
- }
- ]
-}
diff --git a/build_gyp/gyp_pdfium b/build_gyp/gyp_pdfium
deleted file mode 100755
index 6a2540391c..0000000000
--- a/build_gyp/gyp_pdfium
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# This script is wrapper for PDFium that adds some support for how GYP
-# is invoked by PDFium beyond what can be done in the gclient hooks.
-
-import os
-import platform
-import sys
-
-script_dir = os.path.dirname(os.path.realpath(__file__))
-pdfium_root = os.path.abspath(os.path.join(script_dir, os.pardir))
-output_rel_dir = 'out'
-
-sys.path.insert(0, os.path.join(pdfium_root, 'tools', 'gyp', 'pylib'))
-import gyp
-
-# vs_toolchain needs to be after gyp path setting since it also uses gyp.
-sys.path.insert(0, os.path.join(pdfium_root, 'build'))
-import vs_toolchain
-
-def run_gyp(args):
- rc = gyp.main(args)
-
- # Copy Windows toolchain DLLs.
- vs_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
- if vs_runtime_dll_dirs:
- x64_runtime, x86_runtime = vs_runtime_dll_dirs
- vs_toolchain.CopyVsRuntimeDlls(
- os.path.join(pdfium_root, output_rel_dir), (x86_runtime, x64_runtime))
-
- if rc != 0:
- print 'Error running GYP'
- sys.exit(rc)
-
-
-def main():
- if int(os.environ.get('GYP_PDFIUM_NO_ACTION', 0)):
- print 'Skipping gyp_pdfium due to GYP_PDFIUM_NO_ACTION env var.'
- sys.exit(0)
-
- args = sys.argv[1:]
- args.append(os.path.join(pdfium_root, 'build_gyp', 'all.gyp'))
-
- args.append('-I')
- args.append(os.path.join(pdfium_root, 'build_gyp', 'standalone.gypi'))
-
- args.extend(['-D', 'gyp_output_dir=' + output_rel_dir])
-
- # Set the GYP DEPTH variable to the root of the PDFium project.
- args.append('--depth=' + os.path.relpath(pdfium_root))
-
- # GYP does not default to ninja, but PDFium should.
- if not os.environ.get('GYP_GENERATORS', ''):
- print 'GYP_GENERATORS is not set, defaulting to ninja'
- os.environ['GYP_GENERATORS'] = 'ninja'
-
- # Set up the environment variables.
- vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
-
- print 'Updating projects from gyp files...'
- sys.stdout.flush()
-
- run_gyp(args)
-
-
-if __name__ == '__main__':
- sys.exit(main())
diff --git a/build_gyp/gyp_pdfium.py b/build_gyp/gyp_pdfium.py
deleted file mode 100644
index 6831702b54..0000000000
--- a/build_gyp/gyp_pdfium.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-
-path = os.path.abspath(os.path.split(__file__)[0])
-execfile(os.path.join(path, 'gyp_pdfium'))
diff --git a/build_gyp/set_clang_warning_flags.gypi b/build_gyp/set_clang_warning_flags.gypi
deleted file mode 100644
index f6d7aea700..0000000000
--- a/build_gyp/set_clang_warning_flags.gypi
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright (c) 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# This file is meant to be included to set clang-specific compiler flags.
-# To use this the following variable can be defined:
-# clang_warning_flags: list: Compiler flags to pass to clang.
-# clang_warning_flags_unset: list: Compiler flags to not pass to clang.
-#
-# Only use this in third-party code. In chromium_code, fix your code to not
-# warn instead!
-#
-# Note that the gypi file is included in target_defaults, so it does not need
-# to be explicitly included.
-#
-# Warning flags set by this will be used on all platforms. If you want to set
-# warning flags on only some platforms, you have to do so manually.
-#
-# To use this, create a gyp target with the following form:
-# {
-# 'target_name': 'my_target',
-# 'variables': {
-# 'clang_warning_flags': ['-Wno-awesome-warning'],
-# 'clang_warning_flags_unset': ['-Wpreviously-set-flag'],
-# }
-# }
-
-{
- 'variables': {
- 'clang_warning_flags_unset%': [], # Provide a default value.
- },
- 'conditions': [
- ['clang==1', {
- # This uses >@ instead of @< to also see clang_warning_flags set in
- # targets directly, not just the clang_warning_flags in target_defaults.
- 'cflags': [ '>@(clang_warning_flags)' ],
- 'cflags!': [ '>@(clang_warning_flags_unset)' ],
- 'xcode_settings': {
- 'WARNING_CFLAGS': ['>@(clang_warning_flags)'],
- 'WARNING_CFLAGS!': ['>@(clang_warning_flags_unset)'],
- },
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'AdditionalOptions': [ '>@(clang_warning_flags)' ],
- 'AdditionalOptions!': [ '>@(clang_warning_flags_unset)' ],
- },
- },
- }],
- ['clang==0 and host_clang==1', {
- 'target_conditions': [
- ['_toolset=="host"', {
- 'cflags': [ '>@(clang_warning_flags)' ],
- 'cflags!': [ '>@(clang_warning_flags_unset)' ],
- }],
- ],
- }],
- ],
-}
diff --git a/build_gyp/standalone.gypi b/build_gyp/standalone.gypi
deleted file mode 100644
index 4df8649c46..0000000000
--- a/build_gyp/standalone.gypi
+++ /dev/null
@@ -1,591 +0,0 @@
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Definitions to be used when building stand-alone PDFium binaries.
-
-{
- 'variables': {
- 'component%': 'static_library',
- 'chromium_code%': 0,
- 'clang%': 0,
- 'asan%': 0,
- 'sanitizer_coverage%': 0,
- 'use_goma%': 0,
- 'gomadir%': '',
- 'msvs_multi_core_compile%': '1',
- 'pdf_enable_xfa%': 1,
- 'variables': {
- 'variables': {
- 'variables': {
- 'conditions': [
- ['OS=="linux" or OS=="mac"', {
- # This handles the Unix platforms we generally deal with.
- # Anything else gets passed through, which probably won't work
- # very well; such hosts should pass an explicit target_arch
- # to gyp.
- 'host_arch%':
- '<!(uname -m | sed -e "s/i.86/ia32/;\
- s/x86_64/x64/;\
- s/amd64/x64/;\
- s/arm.*/arm/;\
- s/aarch64/arm64/;\
- s/mips.*/mipsel/")',
- }, {
- # OS!="linux" and OS!="mac"
- 'host_arch%': 'ia32',
- }],
- ],
- },
- 'host_arch%': '<(host_arch)',
- 'target_arch%': '<(host_arch)',
- },
- 'host_arch%': '<(host_arch)',
- 'target_arch%': '<(target_arch)',
- 'clang_use_chrome_plugins%': 0,
- },
- 'clang_dir%': 'third_party/llvm-build/Release+Asserts',
- 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
- # These two are needed by V8.
- 'host_arch%': '<(host_arch)',
- 'target_arch%': '<(target_arch)',
- 'werror%': '-Werror',
- 'v8_optimized_debug%': 0,
- 'v8_use_external_startup_data%': 0,
- 'icu_use_data_file_flag%': 1,
- 'icu_gyp_path': '../third_party/icu/icu.gyp',
- 'libjpeg_gyp_path': '../third_party/third_party.gyp',
- 'conditions': [
- ['OS == "win"', {
- 'os_posix%': 0,
- }, {
- 'os_posix%': 1,
- }],
- ['OS=="linux" or OS=="mac"', {
- 'clang%': 1,
- 'host_clang%': 1,
- }, {
- 'clang%': 0,
- 'host_clang%': 0,
- }],
- # Set default gomadir.
- ['OS=="win"', {
- 'gomadir%': 'c:\\goma\\goma-win64',
- }, {
- 'gomadir%': '<!(/bin/echo -n ${HOME}/goma)',
- }],
- ['clang_use_chrome_plugins==1', {
- # Share the same settings as chromium in build/common.gypi.
- 'variables': {
- 'conditions': [
- ['OS!="win"', {
- 'variables': {
- 'conditions': [
- ['OS=="mac" or OS=="ios"', {
- 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib',
- }, { # OS != "mac" and OS != "ios"
- 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so',
- }],
- ],
- },
- 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ',
- }, { # OS == "win"
- # On Windows, the plugin is built directly into clang, so there's
- # no need to load it dynamically.
- 'clang_dynlib_flags%': '',
- }],
- ['OS=="android" or OS=="linux"', {
- 'clang_plugin_check_ipc_arg': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc',
- }, {
- 'clang_plugin_check_ipc_arg': '',
- }],
- ],
- 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates '
- '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion ',
- },
- 'clang_chrome_plugins_flags%':
- '<(clang_dynlib_flags)'
- '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args) <(clang_plugin_check_ipc_arg)',
- }],
- ],
- },
- 'target_defaults': {
- 'default_configuration': 'Debug',
- 'configurations': {
- 'Debug': {
- 'cflags': [
- '-g',
- '-O0',
- '-fdata-sections',
- '-ffunction-sections',
- ],
- 'defines': ['_DEBUG'],
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'Optimization': '0',
- 'conditions': [
- ['component=="shared_library"', {
- 'RuntimeLibrary': '3', # /MDd
- }, {
- 'RuntimeLibrary': '1', # /MTd
- }],
- ],
- },
- 'VCLinkerTool': {
- 'LinkIncremental': '2',
- },
- },
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '0', # -O0
- },
- 'conditions': [
- ['OS=="linux"', {
- # Enable libstdc++ debugging to help catch problems early.
- 'defines': ['_GLIBCXX_DEBUG=1',],
- }],
- ],
- },
- 'Release': {
- 'cflags': [
- '-fno-strict-aliasing',
- ],
- 'defines': ['NDEBUG'],
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
- 'GCC_STRICT_ALIASING': 'NO',
- },
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'Optimization': '2',
- 'InlineFunctionExpansion': '2',
- 'EnableIntrinsicFunctions': 'true',
- 'FavorSizeOrSpeed': '0',
- 'StringPooling': 'true',
- 'conditions': [
- ['component=="shared_library"', {
- 'RuntimeLibrary': '2', #/MD
- }, {
- 'RuntimeLibrary': '0', #/MT
- }],
- ],
- },
- 'VCLinkerTool': {
- 'LinkIncremental': '1',
- 'OptimizeReferences': '2',
- 'EnableCOMDATFolding': '2',
- },
- },
- 'conditions': [
- ['OS=="linux"', {
- 'cflags': [
- '-fdata-sections',
- '-ffunction-sections',
- '-O3',
- '-O2',
- ],
- }],
- ['OS=="android"', {
- 'cflags!': [
- '-O3',
- '-Os',
- ],
- 'cflags': [
- '-fdata-sections',
- '-ffunction-sections',
- '-O2',
- ],
- }],
- ], # conditions
- },
- 'Debug_x64': {
- 'inherit_from': ['Debug'],
- 'msvs_configuration_platform': 'x64',
- },
- 'Release_x64': {
- 'inherit_from': ['Release'],
- 'msvs_configuration_platform': 'x64',
- },
- },
- 'cflags': [
- '-Wall',
- '-Werror',
- '-Wextra',
- # Two common warning flags for Clang and GCC.
- '-Wno-missing-field-initializers',
- '-Wno-unused-parameter',
- '-pthread',
- '-fno-exceptions',
- '-fvisibility=hidden',
- ],
- 'cflags_cc': [
- '-std=c++11',
- # Add back when ICU is clean
- # '-Wnon-virtual-dtor',
- '-fno-rtti',
- ],
- 'ldflags': [
- '-pthread',
- ],
- 'defines': [
- # Don't use deprecated V8 APIs anywhere.
- 'V8_DEPRECATION_WARNINGS',
- ],
- 'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'],
- 'msvs_configuration_attributes': {
- 'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)',
- 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
- 'CharacterSet': '1',
- },
- 'msvs_disabled_warnings': [
- # ####
- # This section is PDFium specific.
- # ####
-
- # Now there is no PDFium specific flag. Add here if needed.
-
- # ####
- # This section should match Chromium's build/common.gypi.
- # ####
-
- # C4091: 'typedef ': ignored on left of 'X' when no variable is
- # declared.
- # This happens in a number of Windows headers. Dumb.
- 4091,
-
- # C4127: conditional expression is constant
- # This warning can in theory catch dead code and other problems, but
- # triggers in far too many desirable cases where the conditional
- # expression is either set by macros or corresponds some legitimate
- # compile-time constant expression (due to constant template args,
- # conditionals comparing the sizes of different types, etc.). Some of
- # these can be worked around, but it's not worth it.
- 4127,
-
- # C4351: new behavior: elements of array 'array' will be default
- # initialized
- # This is a silly "warning" that basically just alerts you that the
- # compiler is going to actually follow the language spec like it's
- # supposed to, instead of not following it like old buggy versions
- # did. There's absolutely no reason to turn this on.
- 4351,
-
- # C4355: 'this': used in base member initializer list
- # It's commonly useful to pass |this| to objects in a class'
- # initializer list. While this warning can catch real bugs, most of
- # the time the constructors in question don't attempt to call methods
- # on the passed-in pointer (until later), and annotating every legit
- # usage of this is simply more hassle than the warning is worth.
- 4355,
-
- # C4503: 'identifier': decorated name length exceeded, name was
- # truncated
- # This only means that some long error messages might have truncated
- # identifiers in the presence of lots of templates. It has no effect
- # on program correctness and there's no real reason to waste time
- # trying to prevent it.
- 4503,
-
- # Warning C4589 says: "Constructor of abstract class ignores
- # initializer for virtual base class." Disable this warning because it
- # is flaky in VS 2015 RTM. It triggers on compiler generated
- # copy-constructors in some cases.
- 4589,
-
- # C4611: interaction between 'function' and C++ object destruction is
- # non-portable
- # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN
- # suggests using exceptions instead of setjmp/longjmp for C++, but
- # Chromium code compiles without exception support. We therefore have
- # to use setjmp/longjmp for e.g. JPEG decode error handling, which
- # means we have to turn off this warning (and be careful about how
- # object destruction happens in such cases).
- 4611,
-
- # TODO(thestig): These warnings are level 4. They will be slowly
- # removed as code is fixed.
- 4100, # Unreferenced formal parameter
- 4121, # Alignment of a member was sensitive to packing
- 4244, # Conversion from 'type1' to 'type2', possible loss of data
- 4505, # Unreferenced local function has been removed
- 4510, # Default constructor could not be generated
- 4512, # Assignment operator could not be generated
- 4610, # Object can never be instantiated
- 4838, # Narrowing conversion. Doesn't seem to be very useful.
- 4995, # 'X': name was marked as #pragma deprecated
- 4996, # 'X': was declared deprecated (for GetVersionEx).
-
- # These are variable shadowing warnings that are new in VS2015. We
- # should work through these at some point -- they may be removed from
- # the RTM release in the /W4 set.
- 4456, 4457, 4458, 4459,
-
- # TODO(brucedawson): http://crbug.com/554200 4312 is a VS
- # 2015 64-bit warning for integer to larger pointer
- 4312,
-
- # ####
- # Do not add PDFium specific entries here. Add them to the top.
- # ####
- ],
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'MinimalRebuild': 'false',
- 'BufferSecurityCheck': 'true',
- 'EnableFunctionLevelLinking': 'true',
- 'RuntimeTypeInfo': 'false',
- 'WarningLevel': '3',
- 'WarnAsError': 'true',
- 'DebugInformationFormat': '3',
- 'Detect64BitPortabilityProblems': 'false',
- 'conditions': [
- [ 'msvs_multi_core_compile', {
- 'AdditionalOptions': ['/MP'],
- }],
- ['component=="shared_library"', {
- 'ExceptionHandling': '1', # /EHsc
- }, {
- 'ExceptionHandling': '0',
- }],
- ['clang==1', {
- 'AdditionalOptions': [
- # Don't warn about unused function parameters.
- # (This is also used on other platforms.)
- '-Wno-unused-parameter',
- # Don't warn about the "struct foo f = {0};" initialization
- # pattern.
- '-Wno-missing-field-initializers',
-
- # TODO(hans): Make this list shorter eventually, http://crbug.com/504657
- '-Qunused-arguments', # http://crbug.com/504658
- '-Wno-microsoft-enum-value', # http://crbug.com/505296
- '-Wno-unknown-pragmas', # http://crbug.com/505314
- '-Wno-microsoft-cast', # http://crbug.com/550065
- ],
- }],
- ['clang==1 and clang_use_chrome_plugins==1', {
- 'AdditionalOptions': [
- '<@(clang_chrome_plugins_flags)',
- ],
- }],
- ['OS=="win" and clang==1 and MSVS_VERSION == "2013"', {
- 'AdditionalOptions': [
- '-fmsc-version=1800',
- ],
- }],
- ['OS=="win" and clang==1 and MSVS_VERSION == "2015"', {
- 'AdditionalOptions': [
- '-fmsc-version=1900',
- ],
- }],
- ],
- },
- 'VCLibrarianTool': {
- 'AdditionalOptions': ['/ignore:4221'],
- },
- 'VCLinkerTool': {
- 'GenerateDebugInformation': 'true',
- 'LinkIncremental': '1',
- # SubSystem values:
- # 0 == not set
- # 1 == /SUBSYSTEM:CONSOLE
- # 2 == /SUBSYSTEM:WINDOWS
- 'SubSystem': '1',
- },
- },
- 'xcode_settings': {
- 'ALWAYS_SEARCH_USER_PATHS': 'NO',
- 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
- 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++
- 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
- 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
- # (Equivalent to -fPIC)
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
- 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
- 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
- # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
- 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
- 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
- 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
- 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor
- 'MACOSX_DEPLOYMENT_TARGET': '10.7', # -mmacosx-version-min
- 'SYMROOT': '<(DEPTH)/xcodebuild',
- 'USE_HEADERMAP': 'NO',
- 'OTHER_CFLAGS': [
- '-fno-strict-aliasing',
- ],
- 'WARNING_CFLAGS': [
- '-Wall',
- '-Werror',
- '-Wextra',
- '-Wno-unused-parameter',
- ],
- 'conditions': [
- ['clang==1 and clang_use_chrome_plugins==1', {
- 'OTHER_CFLAGS': [
- '<@(clang_chrome_plugins_flags)',
- ],
- }],
- ],
- },
- 'variables': {
- 'chromium_code%': '<(chromium_code)',
- 'clang_warning_flags': [
- # TODO(thakis): https://crbug.com/604888
- '-Wno-undefined-var-template',
- ],
- },
- 'includes': [ 'set_clang_warning_flags.gypi', ],
- 'conditions': [
- ['clang==1 and clang_use_chrome_plugins==1', {
- 'cflags': [
- '<@(clang_chrome_plugins_flags)',
- ],
- }],
- ['component=="shared_library"', {
- 'cflags': [
- '-fPIC',
- ],
- }],
- ['asan==1', {
- 'defines': [
- 'ADDRESS_SANITIZER',
- 'LEAK_SANITIZER',
- ],
- 'cflags': [
- '-fsanitize=address',
- '-gline-tables-only',
- ],
- 'ldflags': [
- '-fsanitize=address',
- ],
- }],
- ['sanitizer_coverage!=0', {
- 'cflags': [
- '-fsanitize-coverage=<(sanitizer_coverage)',
- ],
- }],
- ['OS=="win"', {
- 'defines': [
- 'NOMINMAX',
- '_CRT_SECURE_NO_DEPRECATE',
- '_CRT_NONSTDC_NO_DEPRECATE',
- ],
- 'conditions': [
- ['component=="static_library"', {
- 'defines': [
- '_HAS_EXCEPTIONS=0',
- ],
- }],
- ['use_goma==1', {
- # goma doesn't support PDB yet.
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'GenerateDebugInformation': 'true',
- },
- 'VCCLCompilerTool': {
- 'DebugInformationFormat': '1',
- },
- },
- }],
- ],
- }], # OS=="win"
- ['OS=="mac"', {
- 'target_conditions': [
- ['_type!="static_library"', {
- 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
- }],
- ], # target_conditions
- 'variables': {
- 'mac_sdk_min': '10.10',
- 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py <(mac_sdk_min))',
- },
- 'xcode_settings': {
- 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
- # See comment in Chromium's common.gypi for why this is needed.
- 'SYMROOT': '<(DEPTH)/xcodebuild',
- },
- }], # OS=="mac"
- ['v8_use_external_startup_data==1', {
- 'defines': [
- 'V8_USE_EXTERNAL_STARTUP_DATA',
- ],
- }], # v8_use_external_startup_data==1
- ['clang==1 or host_clang==1', {
- # This is here so that all files get recompiled after a clang roll and
- # when turning clang on or off.
- # (defines are passed via the command line, and build systems rebuild
- # things when their commandline changes). Nothing should ever read this
- # define.
- 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/update.py --print-revision)'],
- }],
- ],
- 'target_conditions': [
- ['chromium_code==0', {
- 'variables': {
- 'clang_warning_flags': [
- # Suppress unused variable warnings from third-party libraries.
- '-Wno-unused-variable',
- ],
- },
- 'msvs_disabled_warnings': [
- # forcing value to bool 'true' or 'false' (performance warning)
- 4800,
- ],
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'WarningLevel': '3',
- },
- },
- 'conditions': [
- ['OS!="win"', {
- # Remove -Wextra for third-party code.
- 'cflags!': [ '-Wextra' ],
- }],
- ['OS!="win" and clang==0', {
- 'cflags!': [
- '-Wall',
- ],
- }],
- ['OS=="mac"', {
- 'xcode_settings': {
- 'WARNING_CFLAGS!': ['-Wextra'],
- },
- }],
- ],
- }, { # chromium_code==1
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'WarningLevel': '4',
- },
- },
- }],
- ], # target_conditions for 'target_defaults'
- },
- 'conditions': [
- ['OS=="linux" or OS=="mac"', {
- 'conditions': [
- ['clang==1', {
- 'make_global_settings': [
- ['CC', '<(clang_dir)/bin/clang'],
- ['CXX', '<(clang_dir)/bin/clang++'],
- ],
- }],
- ],
- }], # OS=="linux" or OS=="mac"
- ['OS=="win"', {
- 'conditions': [
- ['clang==1', {
- 'make_global_settings': [
- ['CC', '<(clang_dir)/bin/clang-cl'],
- ],
- }],
- ],
- }], # OS=="win"
- ["use_goma==1", {
- 'make_global_settings': [
- ['CC_wrapper', '<(gomadir)/gomacc'],
- ['CXX_wrapper', '<(gomadir)/gomacc'],
- ],
- }], # use_goma==1
- ],
-}
diff --git a/pdfium.gyp b/pdfium.gyp
deleted file mode 100644
index 658d2dde74..0000000000
--- a/pdfium.gyp
+++ /dev/null
@@ -1,1176 +0,0 @@
-# Copyright 2015 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'chromium_code': 1,
- 'pdf_use_skia%': 0,
- 'pdf_enable_v8%': 1,
- 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in a standalone build.
- 'pdf_use_win32_gdi%': 0,
- 'variables': {
- 'clang_use_chrome_plugins': 1,
- },
- 'conditions': [
- ['OS=="linux"', {
- 'bundle_freetype%': 0,
- }, { # On Android there's no system FreeType. On Windows and Mac, only a
- # few methods are used from it.
- 'bundle_freetype%': 1,
- }],
- ],
- },
- 'target_defaults': {
- 'defines' : [
- 'OPJ_STATIC',
- 'PNG_PREFIX',
- 'PNG_USE_READ_MACROS',
- 'V8_DEPRECATION_WARNINGS',
- ],
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '.',
- 'third_party/freetype/include',
- 'third_party/freetype/include/freetype',
- ],
- 'conditions': [
- ['pdf_use_skia==1', {
- 'defines': ['_SKIA_SUPPORT_'],
- }],
- ['pdf_enable_v8==1', {
- 'defines': ['PDF_ENABLE_V8'],
- }],
- ['pdf_enable_xfa==1', {
- 'defines': ['PDF_ENABLE_XFA'],
- }],
- ['pdf_use_win32_gdi==1', {
- 'defines': ['PDFIUM_PRINT_TEXT_WITH_GDI'],
- }],
- ['OS=="linux"', {
- 'conditions': [
- ['target_arch=="x64"', {
- 'defines' : [ '_FX_CPU_=_FX_X64_', ],
- 'cflags': [ '-fPIC', ],
- }],
- ['target_arch=="ia32"', {
- 'defines' : [ '_FX_CPU_=_FX_X86_', ],
- }],
- ],
- }],
- ],
- 'msvs_disabled_warnings': [
- 4267,
- ],
- },
- 'targets': [
- {
- 'target_name': 'pdfium',
- 'type': 'static_library',
- 'dependencies': [
- 'third_party/third_party.gyp:bigint',
- 'third_party/third_party.gyp:pdfium_base',
- 'fdrm',
- 'fpdfdoc',
- 'fpdfapi',
- 'fpdftext',
- 'formfiller',
- 'fxcodec',
- 'fxcrt',
- 'fxedit',
- 'fxge',
- 'javascript',
- 'pdfwindow',
- ],
- 'sources': [
- 'fpdfsdk/cfx_systemhandler.cpp',
- 'fpdfsdk/cfx_systemhandler.h',
- 'fpdfsdk/include/cba_annotiterator.h',
- 'fpdfsdk/include/cpdfsdk_annot.h',
- 'fpdfsdk/include/cpdfsdk_annothandlermgr.h',
- 'fpdfsdk/include/cpdfsdk_annotiterator.h',
- 'fpdfsdk/include/cpdfsdk_baannot.h',
- 'fpdfsdk/include/cpdfsdk_bfannothandler.h',
- 'fpdfsdk/include/cpdfsdk_datetime.h',
- 'fpdfsdk/include/cpdfsdk_interform.h',
- 'fpdfsdk/include/cpdfsdk_widget.h',
- 'fpdfsdk/include/fsdk_actionhandler.h',
- 'fpdfsdk/include/fsdk_pauseadapter.h',
- 'fpdfsdk/include/ipdfsdk_annothandler.h',
- 'fpdfsdk/include/pdfsdk_fieldaction.h',
- 'fpdfsdk/cba_annotiterator.cpp',
- 'fpdfsdk/cpdfsdk_annot.cpp',
- 'fpdfsdk/cpdfsdk_annothandlermgr.cpp',
- 'fpdfsdk/cpdfsdk_annotiterator.cpp',
- 'fpdfsdk/cpdfsdk_baannot.cpp',
- 'fpdfsdk/cpdfsdk_bfannothandler.cpp',
- 'fpdfsdk/cpdfsdk_datetime.cpp',
- 'fpdfsdk/cpdfsdk_interform.cpp',
- 'fpdfsdk/cpdfsdk_widget.cpp',
- 'fpdfsdk/fpdfdoc.cpp',
- 'fpdfsdk/fpdfeditimg.cpp',
- 'fpdfsdk/fpdfeditpage.cpp',
- 'fpdfsdk/fpdfformfill.cpp',
- 'fpdfsdk/fpdfppo.cpp',
- 'fpdfsdk/fpdfsave.cpp',
- 'fpdfsdk/fpdftext.cpp',
- 'fpdfsdk/fpdfview.cpp',
- 'fpdfsdk/fpdf_dataavail.cpp',
- 'fpdfsdk/fpdf_ext.cpp',
- 'fpdfsdk/fpdf_flatten.cpp',
- 'fpdfsdk/fpdf_progressive.cpp',
- 'fpdfsdk/fpdf_searchex.cpp',
- 'fpdfsdk/fpdf_sysfontinfo.cpp',
- 'fpdfsdk/fpdf_transformpage.cpp',
- 'fpdfsdk/fsdk_actionhandler.cpp',
- 'fpdfsdk/fsdk_mgr.cpp',
- 'fpdfsdk/fsdk_pauseadapter.cpp',
- 'fpdfsdk/pdfsdk_fieldaction.cpp',
- 'public/fpdf_dataavail.h',
- 'public/fpdf_doc.h',
- 'public/fpdf_edit.h',
- 'public/fpdf_ext.h',
- 'public/fpdf_flatten.h',
- 'public/fpdf_formfill.h',
- 'public/fpdf_fwlevent.h',
- 'public/fpdf_ppo.h',
- 'public/fpdf_progressive.h',
- 'public/fpdf_save.h',
- 'public/fpdf_searchex.h',
- 'public/fpdf_sysfontinfo.h',
- 'public/fpdf_text.h',
- 'public/fpdf_transformpage.h',
- 'public/fpdfview.h',
- ],
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'dependencies': [
- 'fpdfxfa',
- ],
- 'sources': [
- 'fpdfsdk/cpdfsdk_xfaannothandler.cpp',
- 'fpdfsdk/cpdfsdk_xfawidget.cpp',
- 'fpdfsdk/include/cpdfsdk_xfaannothandler.h',
- 'fpdfsdk/include/cpdfsdk_xfawidget.h',
- ],
- }],
- ['bundle_freetype==1', {
- 'dependencies': [
- 'third_party/third_party.gyp:fx_freetype',
- ],
- }, {
- 'link_settings': {
- 'libraries': [
- '-lfreetype',
- ],
- },
- }],
- ],
- 'all_dependent_settings': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalDependencies': [
- 'advapi32.lib',
- 'gdi32.lib',
- 'user32.lib',
- ],
- },
- },
- 'conditions': [
- ['OS=="mac"', {
- 'link_settings': {
- 'libraries': [
- '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
- ],
- },
- }],
- ],
- },
- },
- {
- 'target_name': 'fdrm',
- 'type': 'static_library',
- 'sources': [
- 'core/fdrm/crypto/include/fx_crypt.h',
- 'core/fdrm/crypto/fx_crypt.cpp',
- 'core/fdrm/crypto/fx_crypt_aes.cpp',
- 'core/fdrm/crypto/fx_crypt_sha.cpp',
- ],
- },
- {
- 'target_name': 'fpdfdoc',
- 'type': 'static_library',
- 'sources': [
- 'core/fpdfdoc/cline.cpp',
- 'core/fpdfdoc/cline.h',
- 'core/fpdfdoc/clines.cpp',
- 'core/fpdfdoc/clines.h',
- 'core/fpdfdoc/cpdf_aaction.cpp',
- 'core/fpdfdoc/cpdf_action.cpp',
- 'core/fpdfdoc/cpdf_actionfields.cpp',
- 'core/fpdfdoc/cpdf_apsettings.cpp',
- 'core/fpdfdoc/cpdf_apsettings.h',
- 'core/fpdfdoc/cpdf_annot.cpp',
- 'core/fpdfdoc/cpdf_annotlist.cpp',
- 'core/fpdfdoc/cpdf_bookmark.cpp',
- 'core/fpdfdoc/cpdf_bookmarktree.cpp',
- 'core/fpdfdoc/cpdf_defaultappearance.cpp',
- 'core/fpdfdoc/cpdf_dest.cpp',
- 'core/fpdfdoc/cpdf_docjsactions.cpp',
- 'core/fpdfdoc/cpdf_filespec.cpp',
- 'core/fpdfdoc/cpdf_formcontrol.cpp',
- 'core/fpdfdoc/cpdf_formfield.cpp',
- 'core/fpdfdoc/cpdf_iconfit.cpp',
- 'core/fpdfdoc/cpdf_interform.cpp',
- 'core/fpdfdoc/cpdf_link.cpp',
- 'core/fpdfdoc/cpdf_linklist.cpp',
- 'core/fpdfdoc/cpdf_metadata.cpp',
- 'core/fpdfdoc/cpdf_nametree.cpp',
- 'core/fpdfdoc/cpdf_numbertree.cpp',
- 'core/fpdfdoc/cpdf_numbertree.h',
- 'core/fpdfdoc/cpdf_occontext.cpp',
- 'core/fpdfdoc/cpdf_pagelabel.cpp',
- 'core/fpdfdoc/cpdf_pagelabel.h',
- 'core/fpdfdoc/cpdf_variabletext.cpp',
- 'core/fpdfdoc/cpdf_viewerpreferences.cpp',
- 'core/fpdfdoc/cpvt_arraytemplate.h',
- 'core/fpdfdoc/cpvt_color.cpp',
- 'core/fpdfdoc/cpvt_color.h',
- 'core/fpdfdoc/cpvt_dash.h',
- 'core/fpdfdoc/cpvt_floatrect.h',
- 'core/fpdfdoc/cpvt_fontmap.cpp',
- 'core/fpdfdoc/cpvt_fontmap.h',
- 'core/fpdfdoc/cpvt_generateap.cpp',
- 'core/fpdfdoc/cpvt_generateap.h',
- 'core/fpdfdoc/cpvt_lineinfo.h',
- 'core/fpdfdoc/cpvt_sectioninfo.cpp',
- 'core/fpdfdoc/cpvt_sectioninfo.h',
- 'core/fpdfdoc/cpvt_wordinfo.cpp',
- 'core/fpdfdoc/cpvt_wordinfo.h',
- 'core/fpdfdoc/csection.cpp',
- 'core/fpdfdoc/csection.h',
- 'core/fpdfdoc/ctypeset.cpp',
- 'core/fpdfdoc/ctypeset.h',
- 'core/fpdfdoc/doc_tagged.cpp',
- 'core/fpdfdoc/include/cpdf_aaction.h',
- 'core/fpdfdoc/include/cpdf_action.h',
- 'core/fpdfdoc/include/cpdf_actionfields.h',
- 'core/fpdfdoc/include/cpdf_annot.h',
- 'core/fpdfdoc/include/cpdf_annotlist.h',
- 'core/fpdfdoc/include/cpdf_bookmark.h',
- 'core/fpdfdoc/include/cpdf_bookmarktree.h',
- 'core/fpdfdoc/include/cpdf_defaultappearance.h',
- 'core/fpdfdoc/include/cpdf_dest.h',
- 'core/fpdfdoc/include/cpdf_docjsactions.h',
- 'core/fpdfdoc/include/cpdf_filespec.h',
- 'core/fpdfdoc/include/cpdf_formcontrol.h',
- 'core/fpdfdoc/include/cpdf_formfield.h',
- 'core/fpdfdoc/include/cpdf_iconfit.h',
- 'core/fpdfdoc/include/cpdf_interform.h',
- 'core/fpdfdoc/include/cpdf_link.h',
- 'core/fpdfdoc/include/cpdf_linklist.h',
- 'core/fpdfdoc/include/cpdf_metadata.h',
- 'core/fpdfdoc/include/cpdf_nametree.h',
- 'core/fpdfdoc/include/cpdf_occontext.h',
- 'core/fpdfdoc/include/cpdf_variabletext.h',
- 'core/fpdfdoc/include/cpdf_viewerpreferences.h',
- 'core/fpdfdoc/include/cpvt_line.h',
- 'core/fpdfdoc/include/cpvt_secprops.h',
- 'core/fpdfdoc/include/cpvt_section.h',
- 'core/fpdfdoc/include/cpvt_word.h',
- 'core/fpdfdoc/include/cpvt_wordplace.h',
- 'core/fpdfdoc/include/cpvt_wordprops.h',
- 'core/fpdfdoc/include/cpvt_wordrange.h',
- 'core/fpdfdoc/include/fpdf_tagged.h',
- 'core/fpdfdoc/include/ipvt_fontmap.h',
- 'core/fpdfdoc/include/ipdf_formnotify.h',
- 'core/fpdfdoc/ipdf_formnotify.cpp',
- 'core/fpdfdoc/tagged_int.h',
- ],
- },
- {
- 'target_name': 'fpdfapi',
- 'type': 'static_library',
- 'sources': [
- 'core/fpdfapi/cpdf_modulemgr.cpp',
- 'core/fpdfapi/cpdf_pagerendercontext.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
- 'core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
- 'core/fpdfapi/fpdf_cmaps/cmap_int.h',
- 'core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
- 'core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp',
- 'core/fpdfapi/fpdf_edit/editint.h',
- 'core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
- 'core/fpdfapi/fpdf_edit/include/cpdf_creator.h',
- 'core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h',
- 'core/fpdfapi/fpdf_font/cpdf_cidfont.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_cidfont.h',
- 'core/fpdfapi/fpdf_font/cpdf_font.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_simplefont.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_simplefont.h',
- 'core/fpdfapi/fpdf_font/cpdf_truetypefont.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_truetypefont.h',
- 'core/fpdfapi/fpdf_font/cpdf_type1font.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_type1font.h',
- 'core/fpdfapi/fpdf_font/cpdf_type3char.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_type3char.h',
- 'core/fpdfapi/fpdf_font/cpdf_type3font.cpp',
- 'core/fpdfapi/fpdf_font/cpdf_type3font.h',
- 'core/fpdfapi/fpdf_font/font_int.h',
- 'core/fpdfapi/fpdf_font/fpdf_font.cpp',
- 'core/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
- 'core/fpdfapi/fpdf_font/include/cpdf_font.h',
- 'core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h',
- 'core/fpdfapi/fpdf_font/ttgsubtable.cpp',
- 'core/fpdfapi/fpdf_font/ttgsubtable.h',
- 'core/fpdfapi/fpdf_page/cpdf_allstates.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_allstates.h',
- 'core/fpdfapi/fpdf_page/cpdf_clippath.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_clippathdata.h',
- 'core/fpdfapi/fpdf_page/cpdf_color.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_colorspace.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_colorstate.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_colorstate.h',
- 'core/fpdfapi/fpdf_page/cpdf_colorstatedata.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_colorstatedata.h',
- 'core/fpdfapi/fpdf_page/cpdf_contentmark.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_contentmark.h',
- 'core/fpdfapi/fpdf_page/cpdf_contentmarkdata.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h',
- 'core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h',
- 'core/fpdfapi/fpdf_page/cpdf_countedobject.h',
- 'core/fpdfapi/fpdf_page/cpdf_form.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_formobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_generalstate.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_generalstatedata.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_graphicstates.h',
- 'core/fpdfapi/fpdf_page/cpdf_graphstate.h',
- 'core/fpdfapi/fpdf_page/cpdf_image.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_imageobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_meshstream.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_meshstream.h',
- 'core/fpdfapi/fpdf_page/cpdf_page.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pagemodule.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pagemodule.h',
- 'core/fpdfapi/fpdf_page/cpdf_pageobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pageobjectholder.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pageobjectlist.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h',
- 'core/fpdfapi/fpdf_page/cpdf_pathobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pattern.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_pattern.h',
- 'core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_shadingpattern.h',
- 'core/fpdfapi/fpdf_page/cpdf_textobject.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_textstate.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_textstate.h',
- 'core/fpdfapi/fpdf_page/cpdf_textstatedata.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp',
- 'core/fpdfapi/fpdf_page/cpdf_tilingpattern.h',
- 'core/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_func.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
- 'core/fpdfapi/fpdf_page/include/cpdf_clippath.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_color.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_colorspace.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_form.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_formobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_generalstatedata.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_image.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_imageobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_page.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_pageobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_path.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_pathobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_textobject.h',
- 'core/fpdfapi/fpdf_page/include/cpdf_textstatedata.h',
- 'core/fpdfapi/fpdf_page/pageint.h',
- 'core/fpdfapi/fpdf_parser/cfdf_document.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_array.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_boolean.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_boolean.h',
- 'core/fpdfapi/fpdf_parser/cpdf_crypto_handler.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h',
- 'core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_dictionary.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_document.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_hint_tables.h',
- 'core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_name.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_null.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_null.h',
- 'core/fpdfapi/fpdf_parser/cpdf_number.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_object.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_parser.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_reference.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_security_handler.h',
- 'core/fpdfapi/fpdf_parser/cpdf_simple_parser.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_stream.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_stream_acc.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_string.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser.h',
- 'core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
- 'core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
- 'core/fpdfapi/fpdf_parser/fpdf_parser_utility.h',
- 'core/fpdfapi/fpdf_parser/include/cfdf_document.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_array.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_data_avail.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_document.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_name.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_number.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_object.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_parser.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_reference.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_stream.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h',
- 'core/fpdfapi/fpdf_parser/include/cpdf_string.h',
- 'core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h',
- 'core/fpdfapi/fpdf_render/cpdf_pagerendercache.h',
- 'core/fpdfapi/fpdf_render/fpdf_render.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_image.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_text.cpp',
- 'core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h',
- 'core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h',
- 'core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h',
- 'core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h',
- 'core/fpdfapi/fpdf_render/render_int.h',
- 'core/fpdfapi/include/cpdf_modulemgr.h',
- 'core/fpdfapi/include/cpdf_pagerendercontext.h',
- ],
- },
- {
- 'target_name': 'fpdftext',
- 'type': 'static_library',
- 'sources': [
- 'core/fpdftext/include/cpdf_linkextract.h',
- 'core/fpdftext/include/cpdf_textpage.h',
- 'core/fpdftext/include/cpdf_textpagefind.h',
- 'core/fpdftext/fpdf_text_int.cpp',
- 'core/fpdftext/unicodenormalizationdata.cpp',
- 'core/fpdftext/unicodenormalizationdata.h',
- ],
- },
- {
- 'target_name': 'fxcodec',
- 'type': 'static_library',
- 'dependencies': [
- '<(libjpeg_gyp_path):libjpeg',
- 'third_party/third_party.gyp:fx_lcms2',
- 'third_party/third_party.gyp:fx_libopenjpeg',
- 'third_party/third_party.gyp:fx_zlib',
- ],
- 'sources': [
- 'core/fxcodec/codec/ccodec_basicmodule.h',
- 'core/fxcodec/codec/ccodec_faxmodule.h',
- 'core/fxcodec/codec/ccodec_flatemodule.h',
- 'core/fxcodec/codec/ccodec_iccmodule.h',
- 'core/fxcodec/codec/ccodec_jbig2module.h',
- 'core/fxcodec/codec/ccodec_jpegmodule.h',
- 'core/fxcodec/codec/ccodec_jpxmodule.h',
- 'core/fxcodec/codec/ccodec_scanlinedecoder.h',
- 'core/fxcodec/codec/codec_int.h',
- 'core/fxcodec/codec/fx_codec.cpp',
- 'core/fxcodec/codec/fx_codec_fax.cpp',
- 'core/fxcodec/codec/fx_codec_flate.cpp',
- 'core/fxcodec/codec/fx_codec_icc.cpp',
- 'core/fxcodec/codec/fx_codec_jbig.cpp',
- 'core/fxcodec/codec/fx_codec_jpeg.cpp',
- 'core/fxcodec/codec/fx_codec_jpx_opj.cpp',
- 'core/fxcodec/include/JBig2_DocumentContext.h',
- 'core/fxcodec/include/fx_codec.h',
- 'core/fxcodec/include/fx_codec_def.h',
- 'core/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
- 'core/fxcodec/jbig2/JBig2_ArithDecoder.h',
- 'core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
- 'core/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
- 'core/fxcodec/jbig2/JBig2_BitStream.cpp',
- 'core/fxcodec/jbig2/JBig2_BitStream.h',
- 'core/fxcodec/jbig2/JBig2_Context.cpp',
- 'core/fxcodec/jbig2/JBig2_Context.h',
- 'core/fxcodec/jbig2/JBig2_Define.h',
- 'core/fxcodec/jbig2/JBig2_GrdProc.cpp',
- 'core/fxcodec/jbig2/JBig2_GrdProc.h',
- 'core/fxcodec/jbig2/JBig2_GrrdProc.cpp',
- 'core/fxcodec/jbig2/JBig2_GrrdProc.h',
- 'core/fxcodec/jbig2/JBig2_GsidProc.cpp',
- 'core/fxcodec/jbig2/JBig2_GsidProc.h',
- 'core/fxcodec/jbig2/JBig2_HtrdProc.cpp',
- 'core/fxcodec/jbig2/JBig2_HtrdProc.h',
- 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
- 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
- 'core/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
- 'core/fxcodec/jbig2/JBig2_HuffmanTable.h',
- 'core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp',
- 'core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
- 'core/fxcodec/jbig2/JBig2_Image.cpp',
- 'core/fxcodec/jbig2/JBig2_Image.h',
- 'core/fxcodec/jbig2/JBig2_List.h',
- 'core/fxcodec/jbig2/JBig2_Page.h',
- 'core/fxcodec/jbig2/JBig2_PatternDict.cpp',
- 'core/fxcodec/jbig2/JBig2_PatternDict.h',
- 'core/fxcodec/jbig2/JBig2_PddProc.cpp',
- 'core/fxcodec/jbig2/JBig2_PddProc.h',
- 'core/fxcodec/jbig2/JBig2_SddProc.cpp',
- 'core/fxcodec/jbig2/JBig2_SddProc.h',
- 'core/fxcodec/jbig2/JBig2_Segment.cpp',
- 'core/fxcodec/jbig2/JBig2_Segment.h',
- 'core/fxcodec/jbig2/JBig2_SymbolDict.cpp',
- 'core/fxcodec/jbig2/JBig2_SymbolDict.h',
- 'core/fxcodec/jbig2/JBig2_TrdProc.cpp',
- 'core/fxcodec/jbig2/JBig2_TrdProc.h',
- ],
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- # Unresolved warnings in fx_codec_jpx_opj.cpp
- # https://code.google.com/p/pdfium/issues/detail?id=100
- 'WarnAsError': 'false',
- },
- },
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'dependencies': [
- 'third_party/third_party.gyp:fx_lpng',
- 'third_party/third_party.gyp:fx_tiff',
- ],
- 'sources': [
- 'core/fxcodec/codec/ccodec_bmpmodule.h',
- 'core/fxcodec/codec/ccodec_gifmodule.h',
- 'core/fxcodec/codec/ccodec_pngmodule.h',
- 'core/fxcodec/codec/ccodec_tiffmodule.h',
- 'core/fxcodec/codec/fx_codec_bmp.cpp',
- 'core/fxcodec/codec/fx_codec_gif.cpp',
- 'core/fxcodec/codec/fx_codec_png.cpp',
- 'core/fxcodec/codec/fx_codec_progress.cpp',
- 'core/fxcodec/codec/fx_codec_tiff.cpp',
- 'core/fxcodec/codec/include/ccodec_progressivedecoder.h',
- 'core/fxcodec/lbmp/fx_bmp.cpp',
- 'core/fxcodec/lbmp/fx_bmp.h',
- 'core/fxcodec/lgif/fx_gif.cpp',
- 'core/fxcodec/lgif/fx_gif.h',
- ],
- }],
- ['os_posix==1', {
- # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
- # conversion to check that an address is 16-bit aligned (benign).
- 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
- }],
- ],
- },
- {
- 'target_name': 'fxcrt',
- 'type': 'static_library',
- 'sources': [
- 'core/fxcrt/cfx_string_c_template.h',
- 'core/fxcrt/cfx_string_data_template.h',
- 'core/fxcrt/extension.h',
- 'core/fxcrt/fx_basic_array.cpp',
- 'core/fxcrt/fx_basic_bstring.cpp',
- 'core/fxcrt/fx_basic_buffer.cpp',
- 'core/fxcrt/fx_basic_coords.cpp',
- 'core/fxcrt/fx_basic_gcc.cpp',
- 'core/fxcrt/fx_basic_list.cpp',
- 'core/fxcrt/fx_basic_memmgr.cpp',
- 'core/fxcrt/fx_basic_plex.cpp',
- 'core/fxcrt/fx_basic_utf.cpp',
- 'core/fxcrt/fx_basic_util.cpp',
- 'core/fxcrt/fx_basic_wstring.cpp',
- 'core/fxcrt/fx_bidi.cpp',
- 'core/fxcrt/fx_bidi.h',
- 'core/fxcrt/fx_extension.cpp',
- 'core/fxcrt/fx_ucddata.cpp',
- 'core/fxcrt/fx_unicode.cpp',
- 'core/fxcrt/fx_xml_composer.cpp',
- 'core/fxcrt/fx_xml_parser.cpp',
- 'core/fxcrt/fxcrt_posix.cpp',
- 'core/fxcrt/fxcrt_posix.h',
- 'core/fxcrt/fxcrt_stream.cpp',
- 'core/fxcrt/fxcrt_windows.cpp',
- 'core/fxcrt/fxcrt_windows.h',
- 'core/fxcrt/include/cfx_retain_ptr.h',
- 'core/fxcrt/include/fx_basic.h',
- 'core/fxcrt/include/fx_coordinates.h',
- 'core/fxcrt/include/fx_ext.h',
- 'core/fxcrt/include/fx_memory.h',
- 'core/fxcrt/include/fx_safe_types.h',
- 'core/fxcrt/include/fx_stream.h',
- 'core/fxcrt/include/fx_string.h',
- 'core/fxcrt/include/fx_system.h',
- 'core/fxcrt/include/fx_ucd.h',
- 'core/fxcrt/include/fx_xml.h',
- 'core/fxcrt/plex.h',
- 'core/fxcrt/xml_int.h',
- ],
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'sources': [
- 'core/fxcrt/fx_arabic.cpp',
- 'core/fxcrt/fx_basic_maps.cpp',
- 'core/fxcrt/include/fx_arabic.h',
- 'core/fxcrt/include/fx_arb.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'fxge',
- 'type': 'static_library',
- 'dependencies': [
- 'third_party/third_party.gyp:fx_agg',
- ],
- 'sources': [
- 'core/fxge/agg/fx_agg_driver.h',
- 'core/fxge/agg/fx_agg_driver.cpp',
- 'core/fxge/android/fpf_skiafont.cpp',
- 'core/fxge/android/fpf_skiafont.h',
- 'core/fxge/android/fpf_skiafontmgr.cpp',
- 'core/fxge/android/fpf_skiafontmgr.h',
- 'core/fxge/android/fpf_skiamodule.cpp',
- 'core/fxge/android/fpf_skiamodule.h',
- 'core/fxge/android/fx_android_font.cpp',
- 'core/fxge/android/fx_android_font.h',
- 'core/fxge/android/fx_android_imp.cpp',
- 'core/fxge/apple/apple_int.h',
- 'core/fxge/apple/cfx_quartzdevice.h',
- 'core/fxge/apple/fx_apple_platform.cpp',
- 'core/fxge/apple/fx_mac_imp.cpp',
- 'core/fxge/apple/fx_quartz_device.cpp',
- 'core/fxge/dib/dib_int.h',
- 'core/fxge/dib/fx_dib_composite.cpp',
- 'core/fxge/dib/fx_dib_convert.cpp',
- 'core/fxge/dib/fx_dib_engine.cpp',
- 'core/fxge/dib/fx_dib_main.cpp',
- 'core/fxge/dib/fx_dib_transform.cpp',
- 'core/fxge/fontdata/chromefontdata/chromefontdata.h',
- 'core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitFixed.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSans.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSerif.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp',
- 'core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp',
- 'core/fxge/freetype/fx_freetype.cpp',
- 'core/fxge/ge/cfx_autofontcache.cpp',
- 'core/fxge/ge/cfx_cliprgn.cpp',
- 'core/fxge/ge/cfx_cliprgn.h',
- 'core/fxge/ge/cfx_facecache.cpp',
- 'core/fxge/ge/cfx_folderfontinfo.cpp',
- 'core/fxge/ge/cfx_folderfontinfo.h',
- 'core/fxge/ge/cfx_fontcache.cpp',
- 'core/fxge/ge/cfx_fontmapper.cpp',
- 'core/fxge/ge/cfx_fontmgr.cpp',
- 'core/fxge/ge/cfx_gemodule.cpp',
- 'core/fxge/ge/cfx_graphstatedata.cpp',
- 'core/fxge/ge/cfx_pathdata.cpp',
- 'core/fxge/ge/cfx_renderdevice.cpp',
- 'core/fxge/ge/cfx_unicodeencoding.cpp',
- 'core/fxge/ge/include/cfx_fontmapper.h',
- 'core/fxge/ge/include/cfx_fontmgr.h',
- 'core/fxge/ge/include/ifx_systemfontinfo.h',
- 'core/fxge/ge/fx_ge_font.cpp',
- 'core/fxge/ge/fx_ge_fontmap.cpp',
- 'core/fxge/ge/fx_ge_linux.cpp',
- 'core/fxge/ge/fx_ge_text.cpp',
- 'core/fxge/ge/fx_text_int.h',
- 'core/fxge/ifx_renderdevicedriver.cpp',
- 'core/fxge/include/cfx_autofontcache.h',
- 'core/fxge/include/cfx_facecache.h',
- 'core/fxge/include/cfx_fontcache.h',
- 'core/fxge/include/cfx_fxgedevice.h',
- 'core/fxge/include/cfx_gemodule.h',
- 'core/fxge/include/cfx_graphstatedata.h',
- 'core/fxge/include/cfx_pathdata.h',
- 'core/fxge/include/cfx_renderdevice.h',
- 'core/fxge/include/cfx_unicodeencoding.h',
- 'core/fxge/include/cfx_windowsdevice.h',
- 'core/fxge/include/fx_dib.h',
- 'core/fxge/include/fx_font.h',
- 'core/fxge/include/fx_freetype.h',
- 'core/fxge/include/ifx_renderdevicedriver.h',
- 'core/fxge/win32/cfx_windowsdib.h',
- ],
- 'variables': {
- 'clang_warning_flags': [
- # http://code.google.com/p/pdfium/issues/detail?id=188
- '-Wno-switch',
- ],
- },
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'sources': [
- 'core/fxge/ge/cfx_unicodeencodingex.cpp',
- 'core/fxge/include/cfx_unicodeencodingex.h',
- ]
- }],
- ['pdf_use_skia==1', {
- 'sources': [
- 'core/fxge/skia/fx_skia_device.cpp',
- ],
- 'sources!': [
- 'core/fxge/agg/fx_agg_driver.h',
- 'core/fxge/agg/fx_agg_driver.cpp',
- ],
- 'dependencies': [
- '<(DEPTH)/skia/skia.gyp:skia',
- ],
- 'dependencies!': [
- 'third_party/third_party.gyp:fx_agg',
- ],
- }],
- ['OS=="win"', {
- 'defines!': [
- 'WIN32_LEAN_AND_MEAN'
- ],
- 'sources': [
- 'core/fxge/win32/dwrite_int.h',
- 'core/fxge/win32/fx_win32_device.cpp',
- 'core/fxge/win32/fx_win32_dib.cpp',
- 'core/fxge/win32/fx_win32_dwrite.cpp',
- 'core/fxge/win32/fx_win32_gdipext.cpp',
- 'core/fxge/win32/fx_win32_print.cpp',
- 'core/fxge/win32/win32_int.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'fxedit',
- 'type': 'static_library',
- 'sources': [
- 'fpdfsdk/fxedit/include/fx_edit.h',
- 'fpdfsdk/fxedit/include/fxet_edit.h',
- 'fpdfsdk/fxedit/include/fxet_list.h',
- 'fpdfsdk/fxedit/fxet_ap.cpp',
- 'fpdfsdk/fxedit/fxet_edit.cpp',
- 'fpdfsdk/fxedit/fxet_list.cpp',
- ],
- },
- {
- 'target_name': 'pdfwindow',
- 'type': 'static_library',
- 'sources': [
- 'fpdfsdk/pdfwindow/PWL_Button.cpp',
- 'fpdfsdk/pdfwindow/PWL_Button.h',
- 'fpdfsdk/pdfwindow/PWL_Caret.cpp',
- 'fpdfsdk/pdfwindow/PWL_Caret.h',
- 'fpdfsdk/pdfwindow/PWL_ComboBox.cpp',
- 'fpdfsdk/pdfwindow/PWL_ComboBox.h',
- 'fpdfsdk/pdfwindow/PWL_Edit.cpp',
- 'fpdfsdk/pdfwindow/PWL_Edit.h',
- 'fpdfsdk/pdfwindow/PWL_EditCtrl.cpp',
- 'fpdfsdk/pdfwindow/PWL_EditCtrl.h',
- 'fpdfsdk/pdfwindow/PWL_FontMap.cpp',
- 'fpdfsdk/pdfwindow/PWL_FontMap.h',
- 'fpdfsdk/pdfwindow/PWL_Icon.cpp',
- 'fpdfsdk/pdfwindow/PWL_Icon.h',
- 'fpdfsdk/pdfwindow/PWL_ListBox.cpp',
- 'fpdfsdk/pdfwindow/PWL_ListBox.h',
- 'fpdfsdk/pdfwindow/PWL_ScrollBar.cpp',
- 'fpdfsdk/pdfwindow/PWL_ScrollBar.h',
- 'fpdfsdk/pdfwindow/PWL_SpecialButton.cpp',
- 'fpdfsdk/pdfwindow/PWL_SpecialButton.h',
- 'fpdfsdk/pdfwindow/PWL_Utils.cpp',
- 'fpdfsdk/pdfwindow/PWL_Utils.h',
- 'fpdfsdk/pdfwindow/PWL_Wnd.cpp',
- 'fpdfsdk/pdfwindow/PWL_Wnd.h',
- ],
- },
- {
- 'target_name': 'javascript',
- 'type': 'static_library',
- 'sources': [
- 'fpdfsdk/javascript/ijs_context.h',
- 'fpdfsdk/javascript/ijs_runtime.h',
- 'fpdfsdk/javascript/JS_Runtime_Stub.cpp',
- ],
- 'conditions': [
- ['pdf_enable_v8==1', {
- 'dependencies': [
- ':fxjs'
- ],
- 'sources!': [
- 'fpdfsdk/javascript/JS_Runtime_Stub.cpp',
- ],
- 'sources': [
- 'fpdfsdk/javascript/Annot.cpp',
- 'fpdfsdk/javascript/Annot.h',
- 'fpdfsdk/javascript/Consts.cpp',
- 'fpdfsdk/javascript/Consts.h',
- 'fpdfsdk/javascript/Document.cpp',
- 'fpdfsdk/javascript/Document.h',
- 'fpdfsdk/javascript/Field.cpp',
- 'fpdfsdk/javascript/Field.h',
- 'fpdfsdk/javascript/Icon.cpp',
- 'fpdfsdk/javascript/Icon.h',
- 'fpdfsdk/javascript/JS_Define.h',
- 'fpdfsdk/javascript/JS_EventHandler.cpp',
- 'fpdfsdk/javascript/JS_EventHandler.h',
- 'fpdfsdk/javascript/JS_GlobalData.cpp',
- 'fpdfsdk/javascript/JS_GlobalData.h',
- 'fpdfsdk/javascript/JS_KeyValue.cpp',
- 'fpdfsdk/javascript/JS_KeyValue.h',
- 'fpdfsdk/javascript/JS_Object.cpp',
- 'fpdfsdk/javascript/JS_Object.h',
- 'fpdfsdk/javascript/JS_Value.cpp',
- 'fpdfsdk/javascript/JS_Value.h',
- 'fpdfsdk/javascript/PublicMethods.cpp',
- 'fpdfsdk/javascript/PublicMethods.h',
- 'fpdfsdk/javascript/app.cpp',
- 'fpdfsdk/javascript/app.cpp',
- 'fpdfsdk/javascript/app.h',
- 'fpdfsdk/javascript/color.cpp',
- 'fpdfsdk/javascript/color.cpp',
- 'fpdfsdk/javascript/color.h',
- 'fpdfsdk/javascript/console.cpp',
- 'fpdfsdk/javascript/console.cpp',
- 'fpdfsdk/javascript/console.h',
- 'fpdfsdk/javascript/cjs_context.cpp',
- 'fpdfsdk/javascript/cjs_context.h',
- 'fpdfsdk/javascript/cjs_runtime.cpp',
- 'fpdfsdk/javascript/cjs_runtime.h',
- 'fpdfsdk/javascript/event.cpp',
- 'fpdfsdk/javascript/event.h',
- 'fpdfsdk/javascript/global.cpp',
- 'fpdfsdk/javascript/global.h',
- 'fpdfsdk/javascript/report.cpp',
- 'fpdfsdk/javascript/report.h',
- 'fpdfsdk/javascript/resource.cpp',
- 'fpdfsdk/javascript/resource.h',
- 'fpdfsdk/javascript/util.cpp',
- 'fpdfsdk/javascript/util.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'formfiller',
- 'type': 'static_library',
- 'sources': [
- 'fpdfsdk/formfiller/cba_fontmap.cpp',
- 'fpdfsdk/formfiller/cba_fontmap.h',
- 'fpdfsdk/formfiller/cffl_checkbox.cpp',
- 'fpdfsdk/formfiller/cffl_checkbox.h',
- 'fpdfsdk/formfiller/cffl_combobox.cpp',
- 'fpdfsdk/formfiller/cffl_combobox.h',
- 'fpdfsdk/formfiller/cffl_formfiller.cpp',
- 'fpdfsdk/formfiller/cffl_formfiller.h',
- 'fpdfsdk/formfiller/cffl_iformfiller.cpp',
- 'fpdfsdk/formfiller/cffl_iformfiller.h',
- 'fpdfsdk/formfiller/cffl_listbox.cpp',
- 'fpdfsdk/formfiller/cffl_listbox.h',
- 'fpdfsdk/formfiller/cffl_pushbutton.cpp',
- 'fpdfsdk/formfiller/cffl_pushbutton.h',
- 'fpdfsdk/formfiller/cffl_radiobutton.cpp',
- 'fpdfsdk/formfiller/cffl_radiobutton.h',
- 'fpdfsdk/formfiller/cffl_textfield.cpp',
- 'fpdfsdk/formfiller/cffl_textfield.h',
- ],
- },
- {
- 'target_name': 'pdfium_unittests',
- 'type': 'executable',
- 'dependencies': [
- '<(DEPTH)/testing/gtest.gyp:gtest_main',
- '<(DEPTH)/testing/gtest.gyp:gtest',
- 'pdfium',
- 'test_support',
- ],
- 'sources': [
- 'core/fxcrt/cfx_retain_ptr_unittest.cpp',
- 'core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp',
- 'core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_parser_unittest.cpp',
- 'core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_parser_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser_unittest.cpp',
- 'core/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp',
- 'core/fpdfdoc/cpdf_filespec_unittest.cpp',
- 'core/fpdftext/fpdf_text_int_unittest.cpp',
- 'core/fxcodec/codec/fx_codec_jpx_unittest.cpp',
- 'core/fxcrt/fx_basic_bstring_unittest.cpp',
- 'core/fxcrt/fx_basic_gcc_unittest.cpp',
- 'core/fxcrt/fx_basic_memmgr_unittest.cpp',
- 'core/fxcrt/fx_basic_util_unittest.cpp',
- 'core/fxcrt/fx_basic_wstring_unittest.cpp',
- 'core/fxcrt/fx_bidi_unittest.cpp',
- 'core/fxcrt/fx_extension_unittest.cpp',
- 'core/fxcrt/fx_system_unittest.cpp',
- 'core/fxge/dib/fx_dib_engine_unittest.cpp',
- 'fpdfsdk/fpdfdoc_unittest.cpp',
- 'fpdfsdk/fpdfeditimg_unittest.cpp',
- 'testing/fx_string_testhelpers.h',
- 'testing/fx_string_testhelpers.cpp',
- ],
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'sources': [
- 'xfa/fde/css/fde_cssdatatable.cpp',
- 'xfa/fde/xml/fde_xml_imp_unittest.cpp',
- 'xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
- 'xfa/fxfa/app/xfa_textlayout_unittest.cpp',
- 'xfa/fxfa/fm2js/xfa_simpleexpression_unittest.cpp',
- 'xfa/fxfa/parser/xfa_utils_unittest.cpp',
- ],
- }],
- ['pdf_use_skia==1', {
- 'sources': [
- 'core/fxge/skia/fx_skia_device_unittest.cpp',
- ],
- }],
- ['pdf_enable_v8==1', {
- 'include_dirs': [
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- 'sources': [
- 'fpdfsdk/javascript/public_methods_unittest.cpp',
- ],
- }],
- ],
- },
- {
- 'target_name': 'pdfium_embeddertests',
- 'type': 'executable',
- 'dependencies': [
- '<(DEPTH)/testing/gmock.gyp:gmock',
- '<(DEPTH)/testing/gtest.gyp:gtest',
- 'pdfium',
- 'test_support',
- ],
- 'sources': [
- 'core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp',
- 'core/fpdfapi/fpdf_parser/cpdf_security_handler_embeddertest.cpp',
- 'core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp',
- 'core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
- 'core/fxcodec/codec/fx_codec_embeddertest.cpp',
- 'core/fxge/ge/fx_ge_text_embeddertest.cpp',
- 'fpdfsdk/fpdf_dataavail_embeddertest.cpp',
- 'fpdfsdk/fpdfdoc_embeddertest.cpp',
- 'fpdfsdk/fpdfedit_embeddertest.cpp',
- 'fpdfsdk/fpdfext_embeddertest.cpp',
- 'fpdfsdk/fpdfformfill_embeddertest.cpp',
- 'fpdfsdk/fpdfsave_embeddertest.cpp',
- 'fpdfsdk/fpdftext_embeddertest.cpp',
- 'fpdfsdk/fpdfview_c_api_test.c',
- 'fpdfsdk/fpdfview_c_api_test.h',
- 'fpdfsdk/fpdfview_embeddertest.cpp',
- 'fpdfsdk/fsdk_baseform_embeddertest.cpp',
- 'testing/embedder_test.cpp',
- 'testing/embedder_test.h',
- 'testing/embedder_test_mock_delegate.h',
- 'testing/embedder_test_timer_handling_delegate.h',
- ],
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'sources': [
- 'xfa/fxfa/parser/cxfa_simple_parser_embeddertest.cpp',
- ],
- }],
- ['pdf_enable_v8==1', {
- 'include_dirs': [
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- 'dependencies': [
- '<(DEPTH)/v8/src/v8.gyp:v8',
- '<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
- ],
- 'sources': [
- 'fpdfsdk/javascript/public_methods_embeddertest.cpp',
- 'fxjs/fxjs_v8_embeddertest.cpp',
- 'testing/js_embedder_test.cpp',
- 'testing/js_embedder_test.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'test_support',
- 'type': 'static_library',
- 'dependencies': [
- '<(DEPTH)/testing/gmock.gyp:gmock',
- '<(DEPTH)/testing/gtest.gyp:gtest',
- ],
- 'sources': [
- 'testing/fx_string_testhelpers.cpp',
- 'testing/fx_string_testhelpers.h',
- 'testing/test_support.cpp',
- 'testing/test_support.h',
- 'testing/utils/path_service.cpp',
- ],
- 'conditions': [
- ['pdf_enable_v8==1', {
- 'include_dirs': [
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- 'dependencies': [
- '<(DEPTH)/v8/src/v8.gyp:v8',
- '<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
- ],
- }],
- ],
- },
- ],
- 'conditions': [
- ['pdf_enable_v8==1', {
- 'targets': [
- {
- "target_name": "fxjs",
- "type": "static_library",
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '.',
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- 'dependencies': [
- '<(DEPTH)/v8/src/v8.gyp:v8',
- ],
- 'export_dependent_settings': [
- '<(DEPTH)/v8/src/v8.gyp:v8',
- ],
- "sources": [
- 'fxjs/fxjs_v8.cpp',
- 'fxjs/include/fxjs_v8.h',
- ],
- "conditions": [
- ['pdf_enable_xfa==1', {
- 'sources': [
- 'fxjs/cfxjse_arguments.cpp',
- 'fxjs/cfxjse_class.cpp',
- 'fxjs/cfxjse_context.cpp',
- 'fxjs/cfxjse_isolatetracker.cpp',
- 'fxjs/cfxjse_isolatetracker.h',
- 'fxjs/cfxjse_runtimedata.cpp',
- 'fxjs/cfxjse_runtimedata.h',
- 'fxjs/cfxjse_value.cpp',
- 'fxjs/include/cfxjse_arguments.h',
- 'fxjs/include/cfxjse_class.h',
- 'fxjs/include/cfxjse_context.h',
- 'fxjs/include/cfxjse_value.h',
- 'fxjs/include/fxjse.h',
- ]
- }],
- ],
- },
- ]
- }],
- ['pdf_enable_xfa==1', {
- 'targets': [
- {
- 'target_name': 'fpdfxfa',
- 'type': 'static_library',
- 'dependencies': [
- 'fxjs',
- 'javascript',
- 'xfa.gyp:xfa',
- ],
- 'sources': [
- 'fpdfsdk/fpdfxfa/fpdfxfa_app.cpp',
- 'fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp',
- 'fpdfsdk/fpdfxfa/fpdfxfa_page.cpp',
- 'fpdfsdk/fpdfxfa/fpdfxfa_util.cpp',
- 'fpdfsdk/fpdfxfa/include/fpdfxfa_app.h',
- 'fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h',
- 'fpdfsdk/fpdfxfa/include/fpdfxfa_page.h',
- 'fpdfsdk/fpdfxfa/include/fpdfxfa_util.h',
- ],
- },
- ]
- }],
- ]
-}
diff --git a/samples/samples.gyp b/samples/samples.gyp
deleted file mode 100644
index 2c956c5eb3..0000000000
--- a/samples/samples.gyp
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'pdf_enable_v8%': 1,
- 'pdf_enable_xfa%': 0, # Set to 1 in standalone builds by standalone.gypi.
- 'pdf_use_skia%': 0,
- },
- 'target_defaults': {
- 'defines' : [
- 'PNG_PREFIX',
- 'PNG_USE_READ_MACROS',
- ],
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '..',
- ],
- 'conditions': [
- ['pdf_enable_v8==1', {
- 'defines': [
- 'PDF_ENABLE_V8',
- ],
- 'include_dirs': [
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- }],
- ['pdf_enable_xfa==1', {
- 'defines': [
- 'PDF_ENABLE_XFA',
- ],
- }],
- ],
- },
- 'targets': [
- {
- 'target_name': 'pdfium_test',
- 'type': 'executable',
- 'dependencies': [
- '../pdfium.gyp:pdfium',
- '../pdfium.gyp:test_support',
- # Regardless of whether the library ships against system freetype,
- # always link this binary against the bundled one for consistency
- # of results across platforms.
- '../third_party/third_party.gyp:fx_freetype',
- ],
- 'sources': [
- 'pdfium_test.cc',
- 'image_diff_png.cc',
- ],
- 'link_settings': {
- 'libraries!': [
- '-lfreetype',
- ],
- },
- 'conditions': [
- ['pdf_enable_xfa==0', {
- 'dependencies': [
- '../third_party/third_party.gyp:fx_lpng',
- ],
- }],
- ['pdf_enable_v8==1', {
- 'dependencies': [
- '<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
- ],
- }],
- ['pdf_use_skia==1', {
- 'defines': ['PDF_ENABLE_SKIA'],
- 'dependencies': [
- '<(DEPTH)/skia/skia.gyp:skia',
- ],
- }],
- ],
- },
- {
- 'target_name': 'pdfium_diff',
- 'type': 'executable',
- 'variables': { 'enable_wexit_time_destructors': 1, },
- 'dependencies': [
- '../pdfium.gyp:pdfium',
- '../third_party/third_party.gyp:pdfium_base',
- ],
- 'sources': [
- 'image_diff.cc',
- 'image_diff_png.h',
- 'image_diff_png.cc',
- ],
- 'conditions': [
- ['pdf_enable_xfa==0', {
- 'dependencies': [
- '../third_party/third_party.gyp:fx_lpng',
- ],
- }],
- ],
- },
- ],
-}
diff --git a/testing/gmock.gyp b/testing/gmock.gyp
deleted file mode 100644
index 3574beca75..0000000000
--- a/testing/gmock.gyp
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'targets': [
- {
- 'target_name': 'gmock',
- 'type': 'static_library',
- 'dependencies': [
- 'gtest.gyp:gtest',
- ],
- 'sources': [
- # Sources based on files in r173 of gmock.
- 'gmock/include/gmock/gmock-actions.h',
- 'gmock/include/gmock/gmock-cardinalities.h',
- 'gmock/include/gmock/gmock-generated-actions.h',
- 'gmock/include/gmock/gmock-generated-function-mockers.h',
- 'gmock/include/gmock/gmock-generated-matchers.h',
- 'gmock/include/gmock/gmock-generated-nice-strict.h',
- 'gmock/include/gmock/gmock-matchers.h',
- 'gmock/include/gmock/gmock-spec-builders.h',
- 'gmock/include/gmock/gmock.h',
- 'gmock/include/gmock/internal/gmock-generated-internal-utils.h',
- 'gmock/include/gmock/internal/gmock-internal-utils.h',
- 'gmock/include/gmock/internal/gmock-port.h',
- 'gmock/src/gmock-cardinalities.cc',
- 'gmock/src/gmock-internal-utils.cc',
- 'gmock/src/gmock-matchers.cc',
- 'gmock/src/gmock-spec-builders.cc',
- 'gmock/src/gmock.cc',
- ],
- 'include_dirs': [
- 'gmock',
- 'gmock/include',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- 'gmock/include', # So that gmock headers can find themselves.
- ],
- },
- 'export_dependent_settings': [
- 'gtest.gyp:gtest',
- ],
- },
- {
- 'target_name': 'gmock_main',
- 'type': 'static_library',
- 'dependencies': [
- 'gmock',
- ],
- 'sources': [
- 'gmock/src/gmock_main.cc',
- ],
- },
- ],
-}
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
deleted file mode 100644
index 563f340e99..0000000000
--- a/testing/gtest.gyp
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 2014 PDFium authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-#
-# Original code from V8, original license was:
-# Copyright 2014 the V8 project authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-#
-# This file is used only by the standalone PDFium build. Under a chromium
-# checkout, the src/testing/gtest.gyp file is used instead.
-{
- 'targets': [
- {
- 'target_name': 'gtest',
- 'toolsets': ['host', 'target'],
- 'type': 'static_library',
- 'sources': [
- 'gtest/include/gtest/gtest-death-test.h',
- 'gtest/include/gtest/gtest-message.h',
- 'gtest/include/gtest/gtest-param-test.h',
- 'gtest/include/gtest/gtest-printers.h',
- 'gtest/include/gtest/gtest-spi.h',
- 'gtest/include/gtest/gtest-test-part.h',
- 'gtest/include/gtest/gtest-typed-test.h',
- 'gtest/include/gtest/gtest.h',
- 'gtest/include/gtest/gtest_pred_impl.h',
- 'gtest/include/gtest/internal/gtest-death-test-internal.h',
- 'gtest/include/gtest/internal/gtest-filepath.h',
- 'gtest/include/gtest/internal/gtest-internal.h',
- 'gtest/include/gtest/internal/gtest-linked_ptr.h',
- 'gtest/include/gtest/internal/gtest-param-util-generated.h',
- 'gtest/include/gtest/internal/gtest-param-util.h',
- 'gtest/include/gtest/internal/gtest-port.h',
- 'gtest/include/gtest/internal/gtest-string.h',
- 'gtest/include/gtest/internal/gtest-tuple.h',
- 'gtest/include/gtest/internal/gtest-type-util.h',
- 'gtest/src/gtest-all.cc',
- 'gtest/src/gtest-death-test.cc',
- 'gtest/src/gtest-filepath.cc',
- 'gtest/src/gtest-internal-inl.h',
- 'gtest/src/gtest-port.cc',
- 'gtest/src/gtest-printers.cc',
- 'gtest/src/gtest-test-part.cc',
- 'gtest/src/gtest-typed-test.cc',
- 'gtest/src/gtest.cc',
- ],
- 'sources!': [
- 'gtest/src/gtest-all.cc', # Not needed by our build.
- ],
- 'include_dirs': [
- 'gtest',
- 'gtest/include',
- ],
- 'dependencies': [
- 'gtest_prod',
- ],
- 'defines': [
- # In order to allow regex matches in gtest to be shared between Windows
- # and other systems, we tell gtest to always use it's internal engine.
- 'GTEST_HAS_POSIX_RE=0',
- # Unit tests don't require C++11, yet.
- 'GTEST_LANG_CXX11=0',
- ],
- 'all_dependent_settings': {
- 'defines': [
- 'GTEST_HAS_POSIX_RE=0',
- 'GTEST_LANG_CXX11=0',
- ],
- },
- 'conditions': [
- ['os_posix == 1', {
- 'defines': [
- # gtest isn't able to figure out when RTTI is disabled for gcc
- # versions older than 4.3.2, and assumes it's enabled. Our Mac
- # and Linux builds disable RTTI, and cannot guarantee that the
- # compiler will be 4.3.2. or newer. The Mac, for example, uses
- # 4.2.1 as that is the latest available on that platform. gtest
- # must be instructed that RTTI is disabled here, and for any
- # direct dependents that might include gtest headers.
- 'GTEST_HAS_RTTI=0',
- ],
- 'direct_dependent_settings': {
- 'defines': [
- 'GTEST_HAS_RTTI=0',
- ],
- },
- }],
- ['OS=="android"', {
- 'defines': [
- 'GTEST_HAS_CLONE=0',
- ],
- 'direct_dependent_settings': {
- 'defines': [
- 'GTEST_HAS_CLONE=0',
- ],
- },
- }],
- ['OS=="android"', {
- # We want gtest features that use tr1::tuple, but we currently
- # don't support the variadic templates used by libstdc++'s
- # implementation. gtest supports this scenario by providing its
- # own implementation but we must opt in to it.
- 'defines': [
- 'GTEST_USE_OWN_TR1_TUPLE=1',
- # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set.
- # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0
- # automatically on android, so it has to be set explicitly here.
- 'GTEST_HAS_TR1_TUPLE=1',
- ],
- 'direct_dependent_settings': {
- 'defines': [
- 'GTEST_USE_OWN_TR1_TUPLE=1',
- 'GTEST_HAS_TR1_TUPLE=1',
- ],
- },
- }],
- ],
- 'direct_dependent_settings': {
- 'defines': [
- 'UNIT_TEST',
- ],
- 'include_dirs': [
- 'gtest/include', # So that gtest headers can find themselves.
- ],
- 'target_conditions': [
- ['_type=="executable"', {
- 'test': 1,
- 'conditions': [
- ['OS=="mac"', {
- 'run_as': {
- 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'],
- },
- }],
- ['OS=="win"', {
- 'run_as': {
- 'action????': ['$(TargetPath)', '--gtest_print_time'],
- },
- }],
- ],
- }],
- ],
- 'msvs_disabled_warnings': [4800],
- },
- 'variables': {
- 'clang_warning_flags': [
- # The Mutex constructor initializer list in gtest-port.cc is
- # incorrectly ordered. See
- # https://groups.google.com/d/msg/googletestframework/S5uSV8L2TX8/U1FaTDa6J6sJ.
- '-Wno-reorder',
- # Suppress warnings for unused constants.
- '-Wno-unused'
- ],
- },
- },
- {
- 'target_name': 'gtest_main',
- 'type': 'static_library',
- 'dependencies': [
- 'gtest',
- ],
- 'sources': [
- 'gtest/src/gtest_main.cc',
- ],
- },
- {
- 'target_name': 'gtest_prod',
- 'toolsets': ['host', 'target'],
- 'type': 'none',
- 'sources': [
- 'gtest/include/gtest/gtest_prod.h',
- ],
- },
- ],
-}
diff --git a/testing/libfuzzer/fuzzers.gyp b/testing/libfuzzer/fuzzers.gyp
deleted file mode 100644
index 30c8430ff9..0000000000
--- a/testing/libfuzzer/fuzzers.gyp
+++ /dev/null
@@ -1,171 +0,0 @@
-# Copyright 2016 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'pdf_enable_v8%': 1,
- 'pdf_enable_xfa%': 0, # Set to 1 in standalone builds by standalone.gypi.
- },
- 'target_defaults': {
- 'defines' : [
- 'PNG_PREFIX',
- 'PNG_USE_READ_MACROS',
- ],
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '../../third_party/freetype/include',
- '../../third_party/freetype/include/freetype',
- ],
- 'conditions': [
- ['pdf_enable_v8==1', {
- 'defines': [
- 'PDF_ENABLE_V8',
- ],
- 'include_dirs': [
- '<(DEPTH)/v8',
- '<(DEPTH)/v8/include',
- ],
- }],
- ['pdf_enable_xfa==1', {
- 'defines': [
- 'PDF_ENABLE_XFA',
- ],
- }],
- ],
- },
- 'conditions': [
- # FIXME(ochang): Make this work on Mac/Windows.
- ['pdf_enable_xfa==1 and OS=="linux"', {
- 'targets': [
- {
- 'target_name': 'pdf_fm2js_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_fm2js_fuzzer.cc',
- 'unittest_main.cc',
- ],
- },
- {
- 'target_name': 'pdf_xml_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_xml_fuzzer.cc',
- 'unittest_main.cc',
- ],
- },
- {
- 'target_name': 'pdf_cfx_saxreader_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_cfx_saxreader_fuzzer.cc',
- 'unittest_main.cc',
- ],
- },
- {
- 'target_name': 'pdf_codec_png_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_codec_png_fuzzer.cc',
- 'unittest_main.cc',
- 'xfa_codec_fuzzer.h',
- ],
- },
- {
- 'target_name': 'pdf_codec_jpeg_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_codec_jpeg_fuzzer.cc',
- 'unittest_main.cc',
- 'xfa_codec_fuzzer.h',
- ],
- },
- {
- 'target_name': 'pdf_codec_gif_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_codec_gif_fuzzer.cc',
- 'unittest_main.cc',
- 'xfa_codec_fuzzer.h',
- ],
- },
- {
- 'target_name': 'pdf_codec_bmp_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_codec_bmp_fuzzer.cc',
- 'unittest_main.cc',
- 'xfa_codec_fuzzer.h',
- ],
- },
- {
- 'target_name': 'pdf_codec_tiff_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_codec_tiff_fuzzer.cc',
- 'unittest_main.cc',
- 'xfa_codec_fuzzer.h',
- ],
- },
- {
- 'target_name': 'pdf_css_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_css_fuzzer.cc',
- 'unittest_main.cc',
- ],
- },
- ],
- }],
- ['OS=="linux"', {
- 'targets': [
- {
- 'target_name': 'pdf_jpx_fuzzer',
- 'type': 'executable',
- 'dependencies': [
- '../../pdfium.gyp:pdfium',
- ],
- 'sources': [
- 'pdf_jpx_fuzzer.cc',
- 'unittest_main.cc',
- ],
- },
- ],
- }],
- ],
- # Empty target so that nonxfa builds work.
- 'targets': [
- {
- 'target_name': 'empty_target',
- 'type': 'none',
- }
- ],
-}
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
deleted file mode 100644
index caa5bb1af4..0000000000
--- a/third_party/third_party.gyp
+++ /dev/null
@@ -1,477 +0,0 @@
-# Copyright 2014 PDFium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in standalone builds.
- 'pdf_use_skia%': 0,
- },
- 'target_defaults': {
- 'defines': [
- 'OPJ_STATIC',
- 'PNG_PREFIX',
- 'PNG_USE_READ_MACROS',
- ],
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '..',
- ],
- },
- 'targets': [
- {
- 'target_name': 'bigint',
- 'type': 'static_library',
- 'sources': [
- 'bigint/BigInteger.hh',
- 'bigint/BigIntegerLibrary.hh',
- 'bigint/BigIntegerUtils.hh',
- 'bigint/BigUnsigned.hh',
- 'bigint/NumberlikeArray.hh',
- 'bigint/BigUnsignedInABase.hh',
- 'bigint/BigInteger.cc',
- 'bigint/BigIntegerUtils.cc',
- 'bigint/BigUnsigned.cc',
- 'bigint/BigUnsignedInABase.cc',
- ],
- },
- {
- 'target_name': 'fx_freetype',
- 'type': 'static_library',
- 'defines': [
- 'FT2_BUILD_LIBRARY',
- ],
- 'include_dirs': [
- 'freetype/include',
- 'freetype/include/freetype',
- ],
- 'sources': [
- 'freetype/include/freetype/freetype.h',
- 'freetype/include/freetype/ftmm.h',
- 'freetype/include/freetype/ftotval.h',
- 'freetype/include/freetype/ftoutln.h',
- 'freetype/include/freetype/internal/ftobjs.h',
- 'freetype/include/freetype/internal/ftstream.h',
- 'freetype/include/freetype/internal/tttypes.h',
- 'freetype/include/freetype/tttables.h',
- 'freetype/include/ft2build.h',
- 'freetype/src/base/ftbase.c',
- 'freetype/src/base/ftbase.h',
- 'freetype/src/base/ftbitmap.c',
- 'freetype/src/base/ftglyph.c',
- 'freetype/src/base/ftinit.c',
- 'freetype/src/base/ftlcdfil.c',
- 'freetype/src/base/ftmm.c',
- 'freetype/src/base/ftsystem.c',
- 'freetype/src/cff/cff.c',
- 'freetype/src/cff/cffobjs.h',
- 'freetype/src/cff/cfftypes.h',
- 'freetype/src/cid/type1cid.c',
- 'freetype/src/psaux/psaux.c',
- 'freetype/src/pshinter/pshinter.c',
- 'freetype/src/psnames/psmodule.c',
- 'freetype/src/raster/raster.c',
- 'freetype/src/sfnt/sfnt.c',
- 'freetype/src/smooth/smooth.c',
- 'freetype/src/truetype/truetype.c',
- 'freetype/src/type1/type1.c',
- ],
- 'conditions': [
- ['pdf_use_skia==1', {
- 'sources': [
- 'freetype/src/base/ftfntfmt.c',
- 'freetype/src/base/ftfstype.c',
- 'freetype/src/base/fttype1.c',
- ],
- }],
- ['os_posix==1 and clang==0', {
- 'cflags': [
- # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
- # ftbase.h are unused. GCC needs this flag too.
- '-Wno-unused-function',
- ],
- }],
- ],
- 'variables': {
- 'clang_warning_flags': [
- # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
- # ftbase.h are unused.
- '-Wno-unused-function',
- ],
- },
- 'msvs_disabled_warnings': [
- # Warnings about conversion from 'size_t' to 'long', possible loss of
- # data.
- 4267,
- ],
- },
- {
- 'target_name': 'fx_lcms2',
- 'type': 'static_library',
- 'sources': [
- 'lcms2-2.6/include/lcms2.h',
- 'lcms2-2.6/include/lcms2_plugin.h',
- 'lcms2-2.6/src/cmscam02.c',
- 'lcms2-2.6/src/cmscgats.c',
- 'lcms2-2.6/src/cmscnvrt.c',
- 'lcms2-2.6/src/cmserr.c',
- 'lcms2-2.6/src/cmsgamma.c',
- 'lcms2-2.6/src/cmsgmt.c',
- 'lcms2-2.6/src/cmshalf.c',
- 'lcms2-2.6/src/cmsintrp.c',
- 'lcms2-2.6/src/cmsio0.c',
- 'lcms2-2.6/src/cmsio1.c',
- 'lcms2-2.6/src/cmslut.c',
- 'lcms2-2.6/src/cmsmd5.c',
- 'lcms2-2.6/src/cmsmtrx.c',
- 'lcms2-2.6/src/cmsnamed.c',
- 'lcms2-2.6/src/cmsopt.c',
- 'lcms2-2.6/src/cmspack.c',
- 'lcms2-2.6/src/cmspcs.c',
- 'lcms2-2.6/src/cmsplugin.c',
- 'lcms2-2.6/src/cmsps2.c',
- 'lcms2-2.6/src/cmssamp.c',
- 'lcms2-2.6/src/cmssm.c',
- 'lcms2-2.6/src/cmstypes.c',
- 'lcms2-2.6/src/cmsvirt.c',
- 'lcms2-2.6/src/cmswtpnt.c',
- 'lcms2-2.6/src/cmsxform.c',
- ],
- 'conditions': [
- ['os_posix==1', {
- 'cflags': [
- '-Wno-main',
- '-Wno-missing-braces',
- '-Wno-unused',
- ],
- }],
- ],
- 'variables': {
- 'clang_warning_flags': [
- '-Wno-missing-braces',
- # FindPrev() in cmsplugin.c is unused.
- '-Wno-unused-function',
- ],
- },
- },
- {
- 'target_name': 'libjpeg',
- 'type': 'static_library',
- 'sources': [
- 'libjpeg/cderror.h',
- 'libjpeg/cdjpeg.h',
- 'libjpeg/fpdfapi_jcapimin.c',
- 'libjpeg/fpdfapi_jcapistd.c',
- 'libjpeg/fpdfapi_jccoefct.c',
- 'libjpeg/fpdfapi_jccolor.c',
- 'libjpeg/fpdfapi_jcdctmgr.c',
- 'libjpeg/fpdfapi_jchuff.c',
- 'libjpeg/fpdfapi_jcinit.c',
- 'libjpeg/fpdfapi_jcmainct.c',
- 'libjpeg/fpdfapi_jcmarker.c',
- 'libjpeg/fpdfapi_jcmaster.c',
- 'libjpeg/fpdfapi_jcomapi.c',
- 'libjpeg/fpdfapi_jcparam.c',
- 'libjpeg/fpdfapi_jcphuff.c',
- 'libjpeg/fpdfapi_jcprepct.c',
- 'libjpeg/fpdfapi_jcsample.c',
- 'libjpeg/fpdfapi_jctrans.c',
- 'libjpeg/fpdfapi_jdapimin.c',
- 'libjpeg/fpdfapi_jdapistd.c',
- 'libjpeg/fpdfapi_jdcoefct.c',
- 'libjpeg/fpdfapi_jdcolor.c',
- 'libjpeg/fpdfapi_jddctmgr.c',
- 'libjpeg/fpdfapi_jdhuff.c',
- 'libjpeg/fpdfapi_jdinput.c',
- 'libjpeg/fpdfapi_jdmainct.c',
- 'libjpeg/fpdfapi_jdmarker.c',
- 'libjpeg/fpdfapi_jdmaster.c',
- 'libjpeg/fpdfapi_jdmerge.c',
- 'libjpeg/fpdfapi_jdphuff.c',
- 'libjpeg/fpdfapi_jdpostct.c',
- 'libjpeg/fpdfapi_jdsample.c',
- 'libjpeg/fpdfapi_jdtrans.c',
- 'libjpeg/fpdfapi_jerror.c',
- 'libjpeg/fpdfapi_jfdctfst.c',
- 'libjpeg/fpdfapi_jfdctint.c',
- 'libjpeg/fpdfapi_jidctfst.c',
- 'libjpeg/fpdfapi_jidctint.c',
- 'libjpeg/fpdfapi_jidctred.c',
- 'libjpeg/fpdfapi_jmemmgr.c',
- 'libjpeg/fpdfapi_jmemnobs.c',
- 'libjpeg/fpdfapi_jutils.c',
- 'libjpeg/jchuff.h',
- 'libjpeg/jconfig.h',
- 'libjpeg/jdct.h',
- 'libjpeg/jdhuff.h',
- 'libjpeg/jerror.h',
- 'libjpeg/jinclude.h',
- 'libjpeg/jmemsys.h',
- 'libjpeg/jmorecfg.h',
- 'libjpeg/jpegint.h',
- 'libjpeg/jpeglib.h',
- 'libjpeg/jversion.h',
- 'libjpeg/transupp.h',
- ],
- 'conditions': [
- ['os_posix==1', {
- 'cflags': [
- '-Wno-main',
- '-Wno-missing-braces',
- '-Wno-shift-negative-value',
- '-Wno-unused',
- ],
- }],
- ],
- 'variables': {
- 'clang_warning_flags': [
- # Avoid warning for undefined behaviour.
- '-Wno-shift-negative-value',
- ],
- },
- 'msvs_disabled_warnings': [
- # Warnings about conversion from 'size_t' to 'long', possible loss of
- # data.
- 4267,
- ],
- },
- {
- 'target_name': 'fx_libopenjpeg',
- 'type': 'static_library',
- 'sources': [
- 'libopenjpeg20/bio.c',
- 'libopenjpeg20/cio.c',
- 'libopenjpeg20/dwt.c',
- 'libopenjpeg20/event.c',
- 'libopenjpeg20/function_list.c',
- 'libopenjpeg20/image.c',
- 'libopenjpeg20/invert.c',
- 'libopenjpeg20/j2k.c',
- 'libopenjpeg20/jp2.c',
- 'libopenjpeg20/mct.c',
- 'libopenjpeg20/mqc.c',
- 'libopenjpeg20/openjpeg.c',
- 'libopenjpeg20/opj_clock.c',
- 'libopenjpeg20/pi.c',
- 'libopenjpeg20/raw.c',
- 'libopenjpeg20/t1.c',
- 'libopenjpeg20/t2.c',
- 'libopenjpeg20/tcd.c',
- 'libopenjpeg20/tgt.c',
- ],
- 'msvs_disabled_warnings': [
- 4018,
- ],
- },
- {
- 'target_name': 'fx_lpng',
- 'type': 'static_library',
- 'sources': [
- 'libpng16/png.c',
- 'libpng16/png.h',
- 'libpng16/pngconf.h',
- 'libpng16/pngdebug.h',
- 'libpng16/pngerror.c',
- 'libpng16/pngget.c',
- 'libpng16/pnginfo.h',
- 'libpng16/pnglibconf.h',
- 'libpng16/pngmem.c',
- 'libpng16/pngpread.c',
- 'libpng16/pngprefix.h',
- 'libpng16/pngpriv.h',
- 'libpng16/pngread.c',
- 'libpng16/pngrio.c',
- 'libpng16/pngrtran.c',
- 'libpng16/pngrutil.c',
- 'libpng16/pngset.c',
- 'libpng16/pngstruct.h',
- 'libpng16/pngtrans.c',
- 'libpng16/pngwio.c',
- 'libpng16/pngwrite.c',
- 'libpng16/pngwtran.c',
- 'libpng16/pngwutil.c',
- ],
- 'msvs_disabled_warnings': [
- 4146, # Unary minus applied to unsigned type.
- # Warnings about conversion from 'size_t' to 'long', possible loss of
- # data.
- 4267,
- ],
- 'conditions': [
- # SSE optimizations
- [ 'target_arch=="ia32" or target_arch=="x64"', {
- 'defines': [
- 'PNG_INTEL_SSE_OPT=1',
- ],
- 'sources': [
- 'libpng16/contrib/intel/intel_init.c',
- 'libpng16/contrib/intel/filter_sse2_intrinsics.c',
- ],
- }],
-
- # ARM optimizations
- [ '(target_arch=="arm" or target_arch=="arm64") and OS!="ios" and arm_neon==1', {
- 'defines': [
- 'PNG_ARM_NEON_OPT=2',
- 'PNG_ARM_NEON_IMPLEMENTATION=1',
- ],
- 'sources': [
- 'libpng16/arm/arm_init.c',
- 'libpng16/arm/filter_neon_intrinsics.c',
- ],
- }],
- ],
- },
- {
- 'target_name': 'fx_zlib',
- 'type': 'static_library',
- 'sources': [
- 'zlib_v128/adler32.c',
- 'zlib_v128/compress.c',
- 'zlib_v128/crc32.c',
- 'zlib_v128/deflate.c',
- 'zlib_v128/gzclose.c',
- 'zlib_v128/gzlib.c',
- 'zlib_v128/gzread.c',
- 'zlib_v128/gzwrite.c',
- 'zlib_v128/infback.c',
- 'zlib_v128/inffast.c',
- 'zlib_v128/inflate.c',
- 'zlib_v128/inftrees.c',
- 'zlib_v128/trees.c',
- 'zlib_v128/uncompr.c',
- 'zlib_v128/zutil.c',
- ],
- 'conditions': [
- ['os_posix==1', {
- 'cflags': [
- # TODO(dsinclair): Remove if fixed upstream. https://crbug.com/507712
- '-Wno-shift-negative-value',
- ],
- }],
- ['OS == "win"', {
- 'direct_dependent_settings': {
- 'include_dirs': [
- 'zlib_v128',
- ],
- }
- }],
- ],
- 'variables': {
- 'clang_warning_flags': [
- # Avoid warning for undefined behaviour. https://crbug.com/507712
- '-Wno-shift-negative-value',
- ]
- },
- },
- {
- 'target_name': 'pdfium_base',
- 'type': 'none',
- 'sources': [
- 'base/logging.h',
- 'base/macros.h',
- 'base/numerics/safe_conversions.h',
- 'base/numerics/safe_conversions_impl.h',
- 'base/numerics/safe_math.h',
- 'base/numerics/safe_math_impl.h',
- 'base/stl_util.h',
- ],
- },
- ],
- 'conditions': [
- ['pdf_enable_xfa==1', {
- 'targets': [
- {
- 'target_name': 'fx_tiff',
- 'type': 'static_library',
- 'sources': [
- 'libtiff/tiffiop.h',
- 'libtiff/tiffvers.h',
- 'libtiff/tif_aux.c',
- 'libtiff/tif_close.c',
- 'libtiff/tif_codec.c',
- 'libtiff/tif_color.c',
- 'libtiff/tif_compress.c',
- 'libtiff/tif_dir.c',
- 'libtiff/tif_dirinfo.c',
- 'libtiff/tif_dirread.c',
- 'libtiff/tif_dirwrite.c',
- 'libtiff/tif_dumpmode.c',
- 'libtiff/tif_error.c',
- 'libtiff/tif_extension.c',
- 'libtiff/tif_fax3.c',
- 'libtiff/tif_fax3sm.c',
- 'libtiff/tif_flush.c',
- 'libtiff/tif_getimage.c',
- 'libtiff/tif_jpeg.c',
- 'libtiff/tif_luv.c',
- 'libtiff/tif_lzw.c',
- 'libtiff/tif_next.c',
- 'libtiff/tif_ojpeg.c',
- 'libtiff/tif_open.c',
- 'libtiff/tif_packbits.c',
- 'libtiff/tif_pixarlog.c',
- 'libtiff/tif_predict.c',
- 'libtiff/tif_print.c',
- 'libtiff/tif_read.c',
- 'libtiff/tif_strip.c',
- 'libtiff/tif_swab.c',
- 'libtiff/tif_thunder.c',
- 'libtiff/tif_tile.c',
- 'libtiff/tif_version.c',
- 'libtiff/tif_warning.c',
- 'libtiff/tif_write.c',
- 'libtiff/tif_zip.c',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'defines!': [
- # Need to undefine the macro since it is redefined in
- # tif_ojpeg.c and tif_jpeg.c.
- 'WIN32_LEAN_AND_MEAN',
- ],
- }],
- ],
- },
- ],
- }],
- ['pdf_use_skia!=1', {
- 'targets': [
- {
- 'target_name': 'fx_agg',
- 'type': 'static_library',
- 'sources': [
- 'agg23/agg_basics.h',
- 'agg23/agg_clip_liang_barsky.h',
- 'agg23/agg_conv_dash.h',
- 'agg23/agg_conv_stroke.h',
- 'agg23/agg_curves.cpp',
- 'agg23/agg_curves.h',
- 'agg23/agg_path_storage.cpp',
- 'agg23/agg_path_storage.h',
- 'agg23/agg_rasterizer_scanline_aa.cpp',
- 'agg23/agg_rasterizer_scanline_aa.h',
- 'agg23/agg_renderer_scanline.h',
- 'agg23/agg_rendering_buffer.h',
- 'agg23/agg_scanline_u.h',
- 'agg23/agg_vcgen_dash.cpp',
- 'agg23/agg_vcgen_stroke.cpp',
- ],
- 'conditions': [
- ['os_posix==1', {
- # library contains several enum vs non-enum conditionals.
- 'cflags': [ '-Wno-extra', ],
- }],
- ],
- 'variables': {
- 'clang_warning_flags': [
- # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
- '-Wno-unused-function',
- ],
- },
- },
- ],
- }],
- ],
-}
diff --git a/xfa.gyp b/xfa.gyp
deleted file mode 100644
index e75f4fa942..0000000000
--- a/xfa.gyp
+++ /dev/null
@@ -1,618 +0,0 @@
-{
- "variables": {
- "chromium_code": 1,
- "pdf_enable_v8%": 1,
- "variables": {
- 'clang_use_chrome_plugins': 1,
- },
- },
- "target_defaults": {
- "defines": [
- "PDF_ENABLE_XFA",
- ],
- 'msvs_disabled_warnings': [
- 4267,
- ],
- },
- "targets":[
- {
- "target_name":"xfa",
- "type":"static_library",
- 'include_dirs': [
- # This is implicit in GN.
- '<(DEPTH)',
- '.',
- 'third_party/freetype/include',
- 'third_party/freetype/include/freetype',
- ],
- 'defines' : [
- 'FT2_BUILD_LIBRARY',
- ],
- "sources":[
- "xfa/fde/cfde_path.cpp",
- "xfa/fde/cfde_path.h",
- "xfa/fde/cfde_txtedtbuf.cpp",
- "xfa/fde/cfde_txtedtbuf.h",
- "xfa/fde/cfde_txtedtbufiter.cpp",
- "xfa/fde/cfde_txtedtbufiter.h",
- "xfa/fde/cfde_txtedtdorecord_deleterange.cpp",
- "xfa/fde/cfde_txtedtdorecord_deleterange.h",
- "xfa/fde/cfde_txtedtdorecord_insert.cpp",
- "xfa/fde/cfde_txtedtdorecord_insert.h",
- "xfa/fde/cfde_txtedtengine.cpp",
- "xfa/fde/cfde_txtedtengine.h",
- "xfa/fde/cfde_txtedtpage.cpp",
- "xfa/fde/cfde_txtedtpage.h",
- "xfa/fde/cfde_txtedtparag.cpp",
- "xfa/fde/cfde_txtedtparag.h",
- "xfa/fde/cfde_txtedttextset.cpp",
- "xfa/fde/cfde_txtedttextset.h",
- "xfa/fde/cfx_chariter.cpp",
- "xfa/fde/cfx_chariter.h",
- "xfa/fde/cfx_wordbreak.cpp",
- "xfa/fde/cfx_wordbreak.h",
- "xfa/fde/css/cfde_cssrulecollection.cpp",
- "xfa/fde/css/fde_css.cpp",
- "xfa/fde/css/fde_css.h",
- "xfa/fde/css/fde_csscache.cpp",
- "xfa/fde/css/fde_csscache.h",
- "xfa/fde/css/fde_cssdatatable.cpp",
- "xfa/fde/css/fde_cssdatatable.h",
- "xfa/fde/css/fde_cssdeclaration.cpp",
- "xfa/fde/css/fde_cssdeclaration.h",
- "xfa/fde/css/fde_cssstyleselector.cpp",
- "xfa/fde/css/fde_cssstyleselector.h",
- "xfa/fde/css/fde_cssstylesheet.cpp",
- "xfa/fde/css/fde_cssstylesheet.h",
- "xfa/fde/css/fde_csssyntax.cpp",
- "xfa/fde/css/fde_csssyntax.h",
- "xfa/fde/fde_gedevice.cpp",
- "xfa/fde/fde_gedevice.h",
- "xfa/fde/fde_iterator.cpp",
- "xfa/fde/fde_iterator.h",
- "xfa/fde/fde_object.h",
- "xfa/fde/fde_render.cpp",
- "xfa/fde/fde_render.h",
- "xfa/fde/ifde_txtedtdorecord.h",
- "xfa/fde/ifde_txtedtengine.h",
- "xfa/fde/ifde_txtedtpage.h",
- "xfa/fde/ifx_chariter.h",
- "xfa/fde/tto/fde_textout.cpp",
- "xfa/fde/tto/fde_textout.h",
- "xfa/fde/xml/cfx_saxreader.cpp",
- "xfa/fde/xml/cfx_saxreader.h",
- "xfa/fde/xml/fde_xml.h",
- "xfa/fde/xml/fde_xml_imp.cpp",
- "xfa/fde/xml/fde_xml_imp.h",
- "xfa/fgas/crt/fgas_codepage.cpp",
- "xfa/fgas/crt/fgas_codepage.h",
- "xfa/fgas/crt/fgas_language.h",
- "xfa/fgas/crt/fgas_memory.cpp",
- "xfa/fgas/crt/fgas_memory.h",
- "xfa/fgas/crt/fgas_stream.cpp",
- "xfa/fgas/crt/fgas_stream.h",
- "xfa/fgas/crt/fgas_utils.cpp",
- "xfa/fgas/crt/fgas_utils.h",
- "xfa/fgas/font/fgas_font.h",
- "xfa/fgas/font/fgas_fontutils.cpp",
- "xfa/fgas/font/fgas_fontutils.h",
- "xfa/fgas/font/fgas_gefont.cpp",
- "xfa/fgas/font/fgas_gefont.h",
- "xfa/fgas/font/fgas_stdfontmgr.cpp",
- "xfa/fgas/font/fgas_stdfontmgr.h",
- "xfa/fgas/layout/fgas_linebreak.cpp",
- "xfa/fgas/layout/fgas_linebreak.h",
- "xfa/fgas/layout/fgas_rtfbreak.cpp",
- "xfa/fgas/layout/fgas_rtfbreak.h",
- "xfa/fgas/layout/fgas_textbreak.cpp",
- "xfa/fgas/layout/fgas_textbreak.h",
- "xfa/fgas/layout/fgas_unicode.cpp",
- "xfa/fgas/layout/fgas_unicode.h",
- "xfa/fgas/localization/fgas_datetime.cpp",
- "xfa/fgas/localization/fgas_datetime.h",
- "xfa/fgas/localization/fgas_locale.cpp",
- "xfa/fgas/localization/fgas_locale.h",
- "xfa/fgas/localization/fgas_localeimp.h",
- "xfa/fwl/basewidget/cfx_barcode.cpp",
- "xfa/fwl/basewidget/cfx_barcode.h",
- "xfa/fwl/basewidget/fwl_barcodeimp.cpp",
- "xfa/fwl/basewidget/fwl_barcodeimp.h",
- "xfa/fwl/basewidget/fwl_caretimp.cpp",
- "xfa/fwl/basewidget/fwl_caretimp.h",
- "xfa/fwl/basewidget/fwl_checkboximp.cpp",
- "xfa/fwl/basewidget/fwl_checkboximp.h",
- "xfa/fwl/basewidget/fwl_comboboximp.cpp",
- "xfa/fwl/basewidget/fwl_comboboximp.h",
- "xfa/fwl/basewidget/fwl_datetimepickerimp.cpp",
- "xfa/fwl/basewidget/fwl_datetimepickerimp.h",
- "xfa/fwl/basewidget/fwl_editimp.cpp",
- "xfa/fwl/basewidget/fwl_editimp.h",
- "xfa/fwl/basewidget/fwl_formproxyimp.cpp",
- "xfa/fwl/basewidget/fwl_formproxyimp.h",
- "xfa/fwl/basewidget/fwl_listboximp.cpp",
- "xfa/fwl/basewidget/fwl_listboximp.h",
- "xfa/fwl/basewidget/fwl_monthcalendarimp.cpp",
- "xfa/fwl/basewidget/fwl_monthcalendarimp.h",
- "xfa/fwl/basewidget/fwl_pictureboximp.cpp",
- "xfa/fwl/basewidget/fwl_pictureboximp.h",
- "xfa/fwl/basewidget/fwl_pushbuttonimp.cpp",
- "xfa/fwl/basewidget/fwl_pushbuttonimp.h",
- "xfa/fwl/basewidget/fwl_scrollbarimp.cpp",
- "xfa/fwl/basewidget/fwl_scrollbarimp.h",
- "xfa/fwl/basewidget/fwl_spinbuttonimp.cpp",
- "xfa/fwl/basewidget/fwl_spinbuttonimp.h",
- "xfa/fwl/basewidget/fwl_tooltipctrlimp.cpp",
- "xfa/fwl/basewidget/fwl_tooltipctrlimp.h",
- "xfa/fwl/basewidget/ifwl_barcode.h",
- "xfa/fwl/basewidget/ifwl_caret.h",
- "xfa/fwl/basewidget/ifwl_checkbox.h",
- "xfa/fwl/basewidget/ifwl_combobox.h",
- "xfa/fwl/basewidget/ifwl_datetimepicker.h",
- "xfa/fwl/basewidget/ifwl_edit.h",
- "xfa/fwl/basewidget/ifwl_listbox.h",
- "xfa/fwl/basewidget/ifwl_monthcalendar.h",
- "xfa/fwl/basewidget/ifwl_picturebox.h",
- "xfa/fwl/basewidget/ifwl_pushbutton.h",
- "xfa/fwl/basewidget/ifwl_scrollbar.h",
- "xfa/fwl/basewidget/ifwl_spinbutton.h",
- "xfa/fwl/basewidget/ifwl_tooltip.h",
- "xfa/fwl/core/cfwl_event.h",
- "xfa/fwl/core/cfwl_message.h",
- "xfa/fwl/core/cfwl_themebackground.h",
- "xfa/fwl/core/cfwl_themepart.h",
- "xfa/fwl/core/cfwl_themetext.h",
- "xfa/fwl/core/cfwl_widgetimpproperties.h",
- "xfa/fwl/core/cfwl_widgetmgr.cpp",
- "xfa/fwl/core/cfwl_widgetmgr.h",
- "xfa/fwl/core/fwl_appimp.cpp",
- "xfa/fwl/core/fwl_appimp.h",
- "xfa/fwl/core/fwl_error.h",
- "xfa/fwl/core/fwl_formimp.cpp",
- "xfa/fwl/core/fwl_formimp.h",
- "xfa/fwl/core/fwl_noteimp.cpp",
- "xfa/fwl/core/fwl_noteimp.h",
- "xfa/fwl/core/fwl_timerimp.cpp",
- "xfa/fwl/core/fwl_widgetdef.h",
- "xfa/fwl/core/fwl_widgetimp.cpp",
- "xfa/fwl/core/fwl_widgetimp.h",
- "xfa/fwl/core/ifwl_app.h",
- "xfa/fwl/core/ifwl_dataprovider.h",
- "xfa/fwl/core/ifwl_form.h",
- "xfa/fwl/core/ifwl_themeprovider.h",
- "xfa/fwl/core/ifwl_timer.h",
- "xfa/fwl/core/ifwl_widget.h",
- "xfa/fwl/core/ifwl_widgetdelegate.h",
- "xfa/fwl/core/include/fwl_widgethit.h",
- "xfa/fwl/core/include/ifwl_adaptertimermgr.h",
- "xfa/fwl/lightwidget/cfwl_barcode.cpp",
- "xfa/fwl/lightwidget/cfwl_barcode.h",
- "xfa/fwl/lightwidget/cfwl_checkbox.cpp",
- "xfa/fwl/lightwidget/cfwl_checkbox.h",
- "xfa/fwl/lightwidget/cfwl_combobox.cpp",
- "xfa/fwl/lightwidget/cfwl_combobox.h",
- "xfa/fwl/lightwidget/cfwl_datetimepicker.cpp",
- "xfa/fwl/lightwidget/cfwl_datetimepicker.h",
- "xfa/fwl/lightwidget/cfwl_edit.cpp",
- "xfa/fwl/lightwidget/cfwl_edit.h",
- "xfa/fwl/lightwidget/cfwl_listbox.cpp",
- "xfa/fwl/lightwidget/cfwl_listbox.h",
- "xfa/fwl/lightwidget/cfwl_picturebox.cpp",
- "xfa/fwl/lightwidget/cfwl_picturebox.h",
- "xfa/fwl/lightwidget/cfwl_pushbutton.cpp",
- "xfa/fwl/lightwidget/cfwl_pushbutton.h",
- "xfa/fwl/lightwidget/cfwl_widget.cpp",
- "xfa/fwl/lightwidget/cfwl_widget.h",
- "xfa/fwl/lightwidget/cfwl_widgetproperties.cpp",
- "xfa/fwl/lightwidget/cfwl_widgetproperties.h",
- "xfa/fwl/theme/cfwl_arrowdata.cpp",
- "xfa/fwl/theme/cfwl_arrowdata.h",
- "xfa/fwl/theme/cfwl_barcodetp.cpp",
- "xfa/fwl/theme/cfwl_barcodetp.h",
- "xfa/fwl/theme/cfwl_carettp.cpp",
- "xfa/fwl/theme/cfwl_carettp.h",
- "xfa/fwl/theme/cfwl_checkboxtp.cpp",
- "xfa/fwl/theme/cfwl_checkboxtp.h",
- "xfa/fwl/theme/cfwl_comboboxtp.cpp",
- "xfa/fwl/theme/cfwl_comboboxtp.h",
- "xfa/fwl/theme/cfwl_datetimepickertp.cpp",
- "xfa/fwl/theme/cfwl_datetimepickertp.h",
- "xfa/fwl/theme/cfwl_edittp.cpp",
- "xfa/fwl/theme/cfwl_edittp.h",
- "xfa/fwl/theme/cfwl_listboxtp.cpp",
- "xfa/fwl/theme/cfwl_listboxtp.h",
- "xfa/fwl/theme/cfwl_monthcalendartp.cpp",
- "xfa/fwl/theme/cfwl_monthcalendartp.h",
- "xfa/fwl/theme/cfwl_pictureboxtp.cpp",
- "xfa/fwl/theme/cfwl_pictureboxtp.h",
- "xfa/fwl/theme/cfwl_pushbuttontp.cpp",
- "xfa/fwl/theme/cfwl_pushbuttontp.h",
- "xfa/fwl/theme/cfwl_scrollbartp.cpp",
- "xfa/fwl/theme/cfwl_scrollbartp.h",
- "xfa/fwl/theme/cfwl_utils.h",
- "xfa/fwl/theme/cfwl_widgettp.cpp",
- "xfa/fwl/theme/cfwl_widgettp.h",
- "xfa/fxbarcode/BC_Dimension.cpp",
- "xfa/fxbarcode/BC_Dimension.h",
- "xfa/fxbarcode/BC_Library.cpp",
- "xfa/fxbarcode/BC_TwoDimWriter.cpp",
- "xfa/fxbarcode/BC_TwoDimWriter.h",
- "xfa/fxbarcode/BC_UtilCodingConvert.cpp",
- "xfa/fxbarcode/BC_UtilCodingConvert.h",
- "xfa/fxbarcode/BC_Utils.cpp",
- "xfa/fxbarcode/BC_Writer.cpp",
- "xfa/fxbarcode/BC_Writer.h",
- "xfa/fxbarcode/cbc_codabar.cpp",
- "xfa/fxbarcode/cbc_codabar.h",
- "xfa/fxbarcode/cbc_code128.cpp",
- "xfa/fxbarcode/cbc_code128.h",
- "xfa/fxbarcode/cbc_code39.cpp",
- "xfa/fxbarcode/cbc_code39.h",
- "xfa/fxbarcode/cbc_codebase.cpp",
- "xfa/fxbarcode/cbc_codebase.h",
- "xfa/fxbarcode/cbc_datamatrix.cpp",
- "xfa/fxbarcode/cbc_datamatrix.h",
- "xfa/fxbarcode/cbc_ean13.cpp",
- "xfa/fxbarcode/cbc_ean13.h",
- "xfa/fxbarcode/cbc_ean8.cpp",
- "xfa/fxbarcode/cbc_ean8.h",
- "xfa/fxbarcode/cbc_onecode.cpp",
- "xfa/fxbarcode/cbc_onecode.h",
- "xfa/fxbarcode/cbc_pdf417i.cpp",
- "xfa/fxbarcode/cbc_pdf417i.h",
- "xfa/fxbarcode/cbc_qrcode.cpp",
- "xfa/fxbarcode/cbc_qrcode.h",
- "xfa/fxbarcode/cbc_upca.cpp",
- "xfa/fxbarcode/cbc_upca.h",
- "xfa/fxbarcode/common/BC_CommonBitArray.cpp",
- "xfa/fxbarcode/common/BC_CommonBitArray.h",
- "xfa/fxbarcode/common/BC_CommonBitMatrix.cpp",
- "xfa/fxbarcode/common/BC_CommonBitMatrix.h",
- "xfa/fxbarcode/common/BC_CommonByteArray.cpp",
- "xfa/fxbarcode/common/BC_CommonByteArray.h",
- "xfa/fxbarcode/common/BC_CommonByteMatrix.cpp",
- "xfa/fxbarcode/common/BC_CommonByteMatrix.h",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomon.h",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.cpp",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp",
- "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h",
- "xfa/fxbarcode/datamatrix/BC_ASCIIEncoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_ASCIIEncoder.h",
- "xfa/fxbarcode/datamatrix/BC_Base256Encoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_Base256Encoder.h",
- "xfa/fxbarcode/datamatrix/BC_C40Encoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_C40Encoder.h",
- "xfa/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp",
- "xfa/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h",
- "xfa/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp",
- "xfa/fxbarcode/datamatrix/BC_DataMatrixWriter.h",
- "xfa/fxbarcode/datamatrix/BC_DefaultPlacement.cpp",
- "xfa/fxbarcode/datamatrix/BC_DefaultPlacement.h",
- "xfa/fxbarcode/datamatrix/BC_EdifactEncoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_EdifactEncoder.h",
- "xfa/fxbarcode/datamatrix/BC_Encoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_Encoder.h",
- "xfa/fxbarcode/datamatrix/BC_EncoderContext.cpp",
- "xfa/fxbarcode/datamatrix/BC_EncoderContext.h",
- "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.cpp",
- "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h",
- "xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h",
- "xfa/fxbarcode/datamatrix/BC_SymbolInfo.cpp",
- "xfa/fxbarcode/datamatrix/BC_SymbolInfo.h",
- "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.cpp",
- "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h",
- "xfa/fxbarcode/datamatrix/BC_TextEncoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_TextEncoder.h",
- "xfa/fxbarcode/datamatrix/BC_X12Encoder.cpp",
- "xfa/fxbarcode/datamatrix/BC_X12Encoder.h",
- "xfa/fxbarcode/include/BC_Library.h",
- "xfa/fxbarcode/oned/BC_OneDimWriter.cpp",
- "xfa/fxbarcode/oned/BC_OneDimWriter.h",
- "xfa/fxbarcode/oned/BC_OnedCodaBarWriter.cpp",
- "xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h",
- "xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp",
- "xfa/fxbarcode/oned/BC_OnedCode128Writer.h",
- "xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp",
- "xfa/fxbarcode/oned/BC_OnedCode39Writer.h",
- "xfa/fxbarcode/oned/BC_OnedEAN13Writer.cpp",
- "xfa/fxbarcode/oned/BC_OnedEAN13Writer.h",
- "xfa/fxbarcode/oned/BC_OnedEAN8Writer.cpp",
- "xfa/fxbarcode/oned/BC_OnedEAN8Writer.h",
- "xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp",
- "xfa/fxbarcode/oned/BC_OnedUPCAWriter.h",
- "xfa/fxbarcode/pdf417/BC_PDF417.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417.h",
- "xfa/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h",
- "xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h",
- "xfa/fxbarcode/pdf417/BC_PDF417Compaction.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417Compaction.h",
- "xfa/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417ErrorCorrection.h",
- "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h",
- "xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp",
- "xfa/fxbarcode/pdf417/BC_PDF417Writer.h",
- "xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCodeWriter.h",
- "xfa/fxbarcode/qrcode/BC_QRCoder.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoder.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderBitVector.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderBitVector.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderBlockPair.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderECB.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderECB.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderECBlocks.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderEncoder.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderEncoder.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderMatrixUtil.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderMatrixUtil.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderMode.h",
- "xfa/fxbarcode/qrcode/BC_QRCoderVersion.cpp",
- "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h",
- "xfa/fxbarcode/utils.h",
- "xfa/fxfa/app/cxfa_eventparam.cpp",
- "xfa/fxfa/app/xfa_checksum.cpp",
- "xfa/fxfa/app/xfa_ffapp.cpp",
- "xfa/fxfa/app/xfa_ffbarcode.cpp",
- "xfa/fxfa/app/xfa_ffbarcode.h",
- "xfa/fxfa/app/xfa_ffcheckbutton.cpp",
- "xfa/fxfa/app/xfa_ffcheckbutton.h",
- "xfa/fxfa/app/xfa_ffchoicelist.cpp",
- "xfa/fxfa/app/xfa_ffchoicelist.h",
- "xfa/fxfa/app/xfa_ffdoc.cpp",
- "xfa/fxfa/app/xfa_ffdochandler.cpp",
- "xfa/fxfa/app/xfa_ffdocview.cpp",
- "xfa/fxfa/app/xfa_ffdraw.cpp",
- "xfa/fxfa/app/xfa_ffdraw.h",
- "xfa/fxfa/app/xfa_ffexclgroup.cpp",
- "xfa/fxfa/app/xfa_ffexclgroup.h",
- "xfa/fxfa/app/xfa_fffield.cpp",
- "xfa/fxfa/app/xfa_fffield.h",
- "xfa/fxfa/app/xfa_ffimage.cpp",
- "xfa/fxfa/app/xfa_ffimage.h",
- "xfa/fxfa/app/xfa_ffimageedit.cpp",
- "xfa/fxfa/app/xfa_ffimageedit.h",
- "xfa/fxfa/app/xfa_ffnotify.cpp",
- "xfa/fxfa/app/xfa_ffnotify.h",
- "xfa/fxfa/app/xfa_ffpageview.cpp",
- "xfa/fxfa/app/xfa_ffpath.cpp",
- "xfa/fxfa/app/xfa_ffpath.h",
- "xfa/fxfa/app/xfa_ffpushbutton.cpp",
- "xfa/fxfa/app/xfa_ffpushbutton.h",
- "xfa/fxfa/app/xfa_ffsignature.cpp",
- "xfa/fxfa/app/xfa_ffsignature.h",
- "xfa/fxfa/app/xfa_ffsubform.cpp",
- "xfa/fxfa/app/xfa_ffsubform.h",
- "xfa/fxfa/app/xfa_fftext.cpp",
- "xfa/fxfa/app/xfa_fftext.h",
- "xfa/fxfa/app/xfa_fftextedit.cpp",
- "xfa/fxfa/app/xfa_fftextedit.h",
- "xfa/fxfa/app/xfa_ffwidget.cpp",
- "xfa/fxfa/app/xfa_ffwidgetacc.cpp",
- "xfa/fxfa/app/xfa_ffwidgetacc.h",
- "xfa/fxfa/app/xfa_ffwidgethandler.cpp",
- "xfa/fxfa/app/xfa_fontmgr.cpp",
- "xfa/fxfa/app/xfa_fwladapter.cpp",
- "xfa/fxfa/app/xfa_fwladapter.h",
- "xfa/fxfa/app/xfa_fwltheme.cpp",
- "xfa/fxfa/app/xfa_fwltheme.h",
- "xfa/fxfa/app/xfa_rendercontext.cpp",
- "xfa/fxfa/app/xfa_textlayout.cpp",
- "xfa/fxfa/app/xfa_textlayout.h",
- "xfa/fxfa/fm2js/xfa_error.cpp",
- "xfa/fxfa/fm2js/xfa_error.h",
- "xfa/fxfa/fm2js/xfa_expression.cpp",
- "xfa/fxfa/fm2js/xfa_expression.h",
- "xfa/fxfa/fm2js/xfa_fm2jscontext.cpp",
- "xfa/fxfa/fm2js/xfa_fm2jscontext.h",
- "xfa/fxfa/fm2js/xfa_fmparse.cpp",
- "xfa/fxfa/fm2js/xfa_fmparse.h",
- "xfa/fxfa/fm2js/xfa_lexer.cpp",
- "xfa/fxfa/fm2js/xfa_lexer.h",
- "xfa/fxfa/fm2js/xfa_program.cpp",
- "xfa/fxfa/fm2js/xfa_program.h",
- "xfa/fxfa/fm2js/xfa_simpleexpression.cpp",
- "xfa/fxfa/fm2js/xfa_simpleexpression.h",
- "xfa/fxfa/include/cxfa_eventparam.h",
- "xfa/fxfa/include/fxfa.h",
- "xfa/fxfa/include/fxfa_basic.h",
- "xfa/fxfa/include/fxfa_widget.h",
- "xfa/fxfa/include/xfa_checksum.h",
- "xfa/fxfa/include/xfa_ffapp.h",
- "xfa/fxfa/include/xfa_ffdoc.h",
- "xfa/fxfa/include/xfa_ffdochandler.h",
- "xfa/fxfa/include/xfa_ffdocview.h",
- "xfa/fxfa/include/xfa_ffpageview.h",
- "xfa/fxfa/include/xfa_ffwidget.h",
- "xfa/fxfa/include/xfa_ffwidgethandler.h",
- "xfa/fxfa/include/xfa_fontmgr.h",
- "xfa/fxfa/include/xfa_rendercontext.h",
- "xfa/fxfa/parser/cscript_datawindow.cpp",
- "xfa/fxfa/parser/cscript_datawindow.h",
- "xfa/fxfa/parser/cscript_eventpseudomodel.cpp",
- "xfa/fxfa/parser/cscript_eventpseudomodel.h",
- "xfa/fxfa/parser/cscript_hostpseudomodel.cpp",
- "xfa/fxfa/parser/cscript_hostpseudomodel.h",
- "xfa/fxfa/parser/cscript_layoutpseudomodel.cpp",
- "xfa/fxfa/parser/cscript_layoutpseudomodel.h",
- "xfa/fxfa/parser/cscript_logpseudomodel.cpp",
- "xfa/fxfa/parser/cscript_logpseudomodel.h",
- "xfa/fxfa/parser/cscript_signaturepseudomodel.cpp",
- "xfa/fxfa/parser/cscript_signaturepseudomodel.h",
- "xfa/fxfa/parser/cxfa_arc.h",
- "xfa/fxfa/parser/cxfa_arraynodelist.cpp",
- "xfa/fxfa/parser/cxfa_assist.cpp",
- "xfa/fxfa/parser/cxfa_assist.h",
- "xfa/fxfa/parser/cxfa_attachnodelist.cpp",
- "xfa/fxfa/parser/cxfa_bind.cpp",
- "xfa/fxfa/parser/cxfa_bind.h",
- "xfa/fxfa/parser/cxfa_binditems.cpp",
- "xfa/fxfa/parser/cxfa_binditems.h",
- "xfa/fxfa/parser/cxfa_border.h",
- "xfa/fxfa/parser/cxfa_box.cpp",
- "xfa/fxfa/parser/cxfa_box.h",
- "xfa/fxfa/parser/cxfa_calculate.cpp",
- "xfa/fxfa/parser/cxfa_calculate.h",
- "xfa/fxfa/parser/cxfa_caption.cpp",
- "xfa/fxfa/parser/cxfa_caption.h",
- "xfa/fxfa/parser/cxfa_corner.h",
- "xfa/fxfa/parser/cxfa_containerlayoutitem.cpp",
- "xfa/fxfa/parser/cxfa_containerlayoutitem.h",
- "xfa/fxfa/parser/cxfa_contentlayoutitem.cpp",
- "xfa/fxfa/parser/cxfa_contentlayoutitem.h",
- "xfa/fxfa/parser/cxfa_data.cpp",
- "xfa/fxfa/parser/cxfa_data.h",
- "xfa/fxfa/parser/cxfa_dataexporter.cpp",
- "xfa/fxfa/parser/cxfa_dataexporter.h",
- "xfa/fxfa/parser/cxfa_dataimporter.cpp",
- "xfa/fxfa/parser/cxfa_dataimporter.h",
- "xfa/fxfa/parser/cxfa_document.cpp",
- "xfa/fxfa/parser/cxfa_document.h",
- "xfa/fxfa/parser/cxfa_document_parser.cpp",
- "xfa/fxfa/parser/cxfa_document_parser.h",
- "xfa/fxfa/parser/cxfa_edge.h",
- "xfa/fxfa/parser/cxfa_event.cpp",
- "xfa/fxfa/parser/cxfa_event.h",
- "xfa/fxfa/parser/cxfa_exdata.cpp",
- "xfa/fxfa/parser/cxfa_exdata.h",
- "xfa/fxfa/parser/cxfa_fill.cpp",
- "xfa/fxfa/parser/cxfa_fill.h",
- "xfa/fxfa/parser/cxfa_font.cpp",
- "xfa/fxfa/parser/cxfa_font.h",
- "xfa/fxfa/parser/cxfa_image.cpp",
- "xfa/fxfa/parser/cxfa_image.h",
- "xfa/fxfa/parser/cxfa_layoutitem.cpp",
- "xfa/fxfa/parser/cxfa_layoutitem.h",
- "xfa/fxfa/parser/cxfa_layoutpagemgr.cpp",
- "xfa/fxfa/parser/cxfa_layoutpagemgr.h",
- "xfa/fxfa/parser/cxfa_layoutprocessor.cpp",
- "xfa/fxfa/parser/cxfa_layoutprocessor.h",
- "xfa/fxfa/parser/cxfa_line.cpp",
- "xfa/fxfa/parser/cxfa_line.h",
- "xfa/fxfa/parser/cxfa_margin.cpp",
- "xfa/fxfa/parser/cxfa_margin.h",
- "xfa/fxfa/parser/cxfa_measurement.cpp",
- "xfa/fxfa/parser/cxfa_measurement.h",
- "xfa/fxfa/parser/cxfa_node.cpp",
- "xfa/fxfa/parser/cxfa_nodehelper.cpp",
- "xfa/fxfa/parser/cxfa_nodehelper.h",
- "xfa/fxfa/parser/cxfa_nodelist.cpp",
- "xfa/fxfa/parser/cxfa_object.cpp",
- "xfa/fxfa/parser/cxfa_occur.cpp",
- "xfa/fxfa/parser/cxfa_occur.h",
- "xfa/fxfa/parser/cxfa_para.cpp",
- "xfa/fxfa/parser/cxfa_para.h",
- "xfa/fxfa/parser/cxfa_rectangle.h",
- "xfa/fxfa/parser/cxfa_resolveprocessor.cpp",
- "xfa/fxfa/parser/cxfa_resolveprocessor.h",
- "xfa/fxfa/parser/cxfa_script.cpp",
- "xfa/fxfa/parser/cxfa_script.h",
- "xfa/fxfa/parser/cxfa_scriptcontext.cpp",
- "xfa/fxfa/parser/cxfa_scriptcontext.h",
- "xfa/fxfa/parser/cxfa_simple_parser.cpp",
- "xfa/fxfa/parser/cxfa_simple_parser.h",
- "xfa/fxfa/parser/cxfa_stroke.cpp",
- "xfa/fxfa/parser/cxfa_stroke.h",
- "xfa/fxfa/parser/cxfa_submit.cpp",
- "xfa/fxfa/parser/cxfa_submit.h",
- "xfa/fxfa/parser/cxfa_text.cpp",
- "xfa/fxfa/parser/cxfa_text.h",
- "xfa/fxfa/parser/cxfa_thisproxy.cpp",
- "xfa/fxfa/parser/cxfa_tooltip.cpp",
- "xfa/fxfa/parser/cxfa_tooltip.h",
- "xfa/fxfa/parser/cxfa_traversestrategy_contentareacontainerlayoutitem.h",
- "xfa/fxfa/parser/cxfa_traversestrategy_contentlayoutitem.h",
- "xfa/fxfa/parser/cxfa_traversestrategy_layoutitem.h",
- "xfa/fxfa/parser/cxfa_validate.cpp",
- "xfa/fxfa/parser/cxfa_validate.h",
- "xfa/fxfa/parser/cxfa_value.cpp",
- "xfa/fxfa/parser/cxfa_value.h",
- "xfa/fxfa/parser/cxfa_valuearray.cpp",
- "xfa/fxfa/parser/cxfa_valuearray.h",
- "xfa/fxfa/parser/cxfa_widetextread.cpp",
- "xfa/fxfa/parser/cxfa_widetextread.h",
- "xfa/fxfa/parser/cxfa_widgetdata.cpp",
- "xfa/fxfa/parser/cxfa_widgetdata.h",
- "xfa/fxfa/parser/cxfa_xml_parser.cpp",
- "xfa/fxfa/parser/cxfa_xml_parser.h",
- "xfa/fxfa/parser/xfa_basic_data.cpp",
- "xfa/fxfa/parser/xfa_basic_data_attributes.cpp",
- "xfa/fxfa/parser/xfa_basic_data_element_attributes.cpp",
- "xfa/fxfa/parser/xfa_basic_data_element_properties.cpp",
- "xfa/fxfa/parser/xfa_basic_data_element_script.cpp",
- "xfa/fxfa/parser/xfa_basic_data_enum.cpp",
- "xfa/fxfa/parser/xfa_basic_data_packets.cpp",
- "xfa/fxfa/parser/xfa_basic_data.h",
- "xfa/fxfa/parser/xfa_document_datamerger_imp.cpp",
- "xfa/fxfa/parser/xfa_document_datamerger_imp.h",
- "xfa/fxfa/parser/xfa_layout_itemlayout.cpp",
- "xfa/fxfa/parser/xfa_layout_itemlayout.h",
- "xfa/fxfa/parser/xfa_locale.cpp",
- "xfa/fxfa/parser/xfa_locale.h",
- "xfa/fxfa/parser/xfa_localemgr.cpp",
- "xfa/fxfa/parser/xfa_localemgr.h",
- "xfa/fxfa/parser/xfa_localevalue.cpp",
- "xfa/fxfa/parser/xfa_localevalue.h",
- "xfa/fxfa/parser/xfa_object.h",
- "xfa/fxfa/parser/xfa_resolvenode_rs.h",
- "xfa/fxfa/parser/xfa_utils.cpp",
- "xfa/fxfa/parser/xfa_utils.h",
- "xfa/fxgraphics/cagg_graphics.cpp",
- "xfa/fxgraphics/cagg_graphics.h",
- "xfa/fxgraphics/cfx_color.cpp",
- "xfa/fxgraphics/cfx_color.h",
- "xfa/fxgraphics/cfx_graphics.cpp",
- "xfa/fxgraphics/cfx_path.cpp",
- "xfa/fxgraphics/cfx_path.h",
- "xfa/fxgraphics/cfx_path_generator.cpp",
- "xfa/fxgraphics/cfx_path_generator.h",
- "xfa/fxgraphics/cfx_pattern.cpp",
- "xfa/fxgraphics/cfx_pattern.h",
- "xfa/fxgraphics/cfx_shading.cpp",
- "xfa/fxgraphics/cfx_shading.h",
- "xfa/fxgraphics/include/cfx_graphics.h",
- ],
- "conditions": [
- ["os_posix==1 and clang==0", { # When GCC
- 'cflags': [ '-Wno-strict-overflow' ],
- }],
- ["OS == 'win'", {
- "configurations": {
- "Debug": {
- "msvs_configuration_attributes": {},
- "msvs_settings": {
- "VCCLCompilerTool": {},
- "VCLibrarianTool": {},
- "VCLinkerTool": {},
- }
- },
- "Release": {
- "msvs_configuration_attributes": {},
- "msvs_settings": {
- "VCCLCompilerTool": {},
- "VCLibrarianTool": {},
- "VCLinkerTool": {},
- }
- }
- },
- "sources": [],
- }],
- ["OS == 'mac'", {
- "configurations": {},
- "sources": [],
- }],
- ]
- }
- ]
-}