OLD | NEW |
(Empty) | |
| 1 # Builds the Netty fork of Tomcat Native. See http://netty.io/wiki/forked-tomcat
-native.html |
| 2 { |
| 3 'targets': [ |
| 4 { |
| 5 'target_name': 'netty-tcnative-so', |
| 6 'product_name': 'netty-tcnative', |
| 7 'type': 'shared_library', |
| 8 'sources': [ |
| 9 'src/c/address.c', |
| 10 'src/c/bb.c', |
| 11 'src/c/dir.c', |
| 12 'src/c/error.c', |
| 13 'src/c/file.c', |
| 14 'src/c/info.c', |
| 15 'src/c/jnilib.c', |
| 16 'src/c/lock.c', |
| 17 'src/c/misc.c', |
| 18 'src/c/mmap.c', |
| 19 'src/c/multicast.c', |
| 20 'src/c/network.c', |
| 21 'src/c/os.c', |
| 22 'src/c/os_unix_system.c', |
| 23 'src/c/os_unix_uxpipe.c', |
| 24 'src/c/poll.c', |
| 25 'src/c/pool.c', |
| 26 'src/c/proc.c', |
| 27 'src/c/shm.c', |
| 28 'src/c/ssl.c', |
| 29 'src/c/sslcontext.c', |
| 30 'src/c/sslinfo.c', |
| 31 'src/c/sslnetwork.c', |
| 32 'src/c/ssl_private.h', |
| 33 'src/c/sslutils.c', |
| 34 'src/c/stdlib.c', |
| 35 'src/c/tcn_api.h', |
| 36 'src/c/tcn.h', |
| 37 'src/c/tcn_version.h', |
| 38 'src/c/thread.c', |
| 39 'src/c/user.c', |
| 40 ], |
| 41 'include_dirs': [ |
| 42 '../apache-portable-runtime/src/include', |
| 43 ], |
| 44 'defines': [ |
| 45 'HAVE_OPENSSL', |
| 46 ], |
| 47 'cflags': [ |
| 48 '-w', |
| 49 ], |
| 50 'dependencies': [ |
| 51 '../apache-portable-runtime/apr.gyp:apr', |
| 52 '../boringssl/boringssl.gyp:boringssl', |
| 53 ], |
| 54 'variables': { |
| 55 'use_native_jni_exports': 1, |
| 56 }, |
| 57 }, |
| 58 { |
| 59 'target_name': 'netty-tcnative', |
| 60 'type': 'none', |
| 61 'variables': { |
| 62 'java_in_dir': 'src/java', |
| 63 'javac_includes': [ '**/org/apache/tomcat/jni/*.java' ], |
| 64 'run_findbugs': 0, |
| 65 }, |
| 66 'includes': [ '../../build/java.gypi' ], |
| 67 'dependencies': [ |
| 68 'netty-tcnative-so', |
| 69 'rename_netty_tcnative_so_file', |
| 70 ], |
| 71 'export_dependent_settings': [ |
| 72 'rename_netty_tcnative_so_file', |
| 73 ], |
| 74 }, |
| 75 { |
| 76 # libnetty-tcnative shared library should have a specific name when |
| 77 # it is copied to the test APK. This target renames (actually makes |
| 78 # a copy of) the 'so' file if it has a different name. |
| 79 'target_name': 'rename_netty_tcnative_so_file', |
| 80 'type': 'none', |
| 81 'conditions': [ |
| 82 ['component=="shared_library"', { |
| 83 'actions': [ |
| 84 { |
| 85 'action_name': 'copy', |
| 86 'inputs': ['<(PRODUCT_DIR)/lib/libnetty-tcnative.cr.so'], |
| 87 'outputs': ['<(PRODUCT_DIR)/lib/libnetty-tcnative.so'], |
| 88 'action': [ |
| 89 'cp', |
| 90 '<@(_inputs)', |
| 91 '<@(_outputs)', |
| 92 ], |
| 93 }], |
| 94 }], |
| 95 ], |
| 96 'dependencies': [ |
| 97 'netty-tcnative-so', |
| 98 ], |
| 99 'direct_dependent_settings': { |
| 100 'variables': { |
| 101 'netty_tcnative_so_file_location': '<(PRODUCT_DIR)/lib/libnetty-tcnati
ve.so', |
| 102 }, |
| 103 }, |
| 104 }, |
| 105 ], |
| 106 } |
OLD | NEW |