android: fix the gyp build

Change-Id: Ic54fd61258f4ea5b3aaa83a252faa0053ca1f552
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2062773
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Joshua Peraza 2020-02-18 11:09:00 -08:00 committed by Commit Bot
parent 5a8c228641
commit 07812f5bd6
2 changed files with 27 additions and 0 deletions

View File

@ -28,6 +28,7 @@
'../minidump/minidump.gyp:crashpad_minidump',
'../snapshot/snapshot.gyp:crashpad_snapshot',
'../third_party/mini_chromium/mini_chromium.gyp:base',
'../third_party/zlib/zlib.gyp:zlib',
'../tools/tools.gyp:crashpad_tool_support',
'../util/util.gyp:crashpad_util',
],

View File

@ -26,6 +26,7 @@
'../third_party/zlib/zlib.gyp:zlib',
'../third_party/lss/lss.gyp:lss',
],
'defines': [ 'ZLIB_CONST' ],
'include_dirs': [
'..',
'<(INTERMEDIATE_DIR)',
@ -49,6 +50,8 @@
'file/filesystem_win.cc',
'file/file_writer.cc',
'file/file_writer.h',
'file/output_stream_file_writer.cc',
'file/output_stream_file_writer.h',
'file/scoped_remove_file.cc',
'file/scoped_remove_file.h',
'file/string_file.cc',
@ -235,6 +238,17 @@
'stdlib/strnlen.cc',
'stdlib/strnlen.h',
'stdlib/thread_safe_vector.h',
'stream/base94_output_stream.cc',
'stream/base94_output_stream.h',
'stream/file_encoder.cc',
'stream/file_encoder.h',
'stream/file_output_stream.cc',
'stream/file_output_stream.h',
'stream/log_output_stream.cc',
'stream/log_output_stream.h',
'stream/output_stream_interface.h',
'stream/zlib_output_stream.cc',
'stream/zlib_output_stream.h',
'string/split_string.cc',
'string/split_string.h',
'synchronization/semaphore_mac.cc',
@ -393,6 +407,13 @@
'win/safe_terminate_process.asm',
],
}],
['OS=="android"', {
'link_settings': {
'libraries': [
'-llog',
],
},
}],
['OS=="linux" or OS=="android"', {
'sources': [
'net/http_transport_socket.cc',
@ -421,6 +442,11 @@
['include', '^process/process_memory_linux\\.cc$'],
['include', '^process/process_memory_linux\\.h$'],
],
}, { # else: OS!="android"
'sources!': [
'stream/log_output_stream.cc',
'stream/log_output_stream.h',
]
}],
],
},