Chromium Code Reviews| Index: third_party/netty-tcnative/netty-tcnative.gyp |
| diff --git a/third_party/netty-tcnative/netty-tcnative.gyp b/third_party/netty-tcnative/netty-tcnative.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a8b1c8d7a3188d71b6094ea8b500a9fd437f4029 |
| --- /dev/null |
| +++ b/third_party/netty-tcnative/netty-tcnative.gyp |
| @@ -0,0 +1,87 @@ |
| +# Builds the Netty fork of Tomcat Native. See http://netty.io/wiki/forked-tomcat-native.html |
| +{ |
| + 'targets': [ |
| + { |
| + 'target_name': 'netty-tcnative-so', |
| + 'product_name': 'netty-tcnative', |
| + 'type': 'shared_library', |
| + 'sources': [ |
| + 'src/c/address.c', |
| + 'src/c/bb.c', |
| + 'src/c/dir.c', |
| + 'src/c/error.c', |
| + 'src/c/file.c', |
| + 'src/c/info.c', |
| + 'src/c/jnilib.c', |
| + 'src/c/lock.c', |
| + 'src/c/misc.c', |
| + 'src/c/mmap.c', |
| + 'src/c/multicast.c', |
| + 'src/c/network.c', |
| + 'src/c/os.c', |
| + 'src/c/os_unix_system.c', |
| + 'src/c/os_unix_uxpipe.c', |
| + 'src/c/poll.c', |
| + 'src/c/pool.c', |
| + 'src/c/proc.c', |
| + 'src/c/shm.c', |
| + 'src/c/ssl.c', |
| + 'src/c/sslcontext.c', |
| + 'src/c/sslinfo.c', |
| + 'src/c/sslnetwork.c', |
| + 'src/c/ssl_private.h', |
| + 'src/c/sslutils.c', |
| + 'src/c/stdlib.c', |
| + 'src/c/tcn_api.h', |
| + 'src/c/tcn.h', |
| + 'src/c/tcn_version.h', |
| + 'src/c/thread.c', |
| + 'src/c/user.c', |
| + ], |
| + 'include_dirs': [ |
| + '../apache-portable-runtime/src/include', |
| + ], |
| + 'defines': [ |
| + 'HAVE_OPENSSL', |
| + ], |
| + 'cflags': [ |
| + '-w', |
| + ], |
| + 'dependencies': [ |
| + '../apache-portable-runtime/apr.gyp:apr', |
| + '../boringssl/boringssl.gyp:boringssl', |
| + ], |
| + 'variables': { |
| + 'use_native_jni_exports': 1, |
| + }, |
| + 'conditions': [ |
| + ['component=="shared_library"', { |
| + 'direct_dependent_settings': { |
| + 'variables': { |
| + 'netty_tcnative_so_file_name': 'libnetty-tcnative.cr.so', |
|
mef
2016/01/26 22:36:48
Can this do a copy and set 'additional_bundled_lib
kapishnikov
2016/01/27 00:46:07
I moved the copying and setting the shared library
mef
2016/01/27 16:08:08
Acknowledged.
|
| + }, |
| + }, |
| + }, { |
| + 'direct_dependent_settings': { |
| + 'variables': { |
| + 'netty_tcnative_so_file_name': 'libnetty-tcnative.so', |
| + }, |
| + }, |
| + }], |
| + ], |
| + }, |
| + { |
| + 'target_name': 'netty-tcnative', |
| + 'type': 'none', |
| + 'variables': { |
| + 'java_in_dir': 'src/java', |
| + 'javac_includes': [ '**/org/apache/tomcat/jni/*.java' ], |
| + 'run_findbugs': 0, |
| + }, |
| + 'includes': [ '../../build/java.gypi' ], |
| + 'dependencies': [ |
| + 'netty-tcnative-so', |
| + ], |
| + }, |
| + ], |
| +} |