Skip to content

Commit

Permalink
P preview 4
Browse files Browse the repository at this point in the history
  • Loading branch information
shakalaca committed Jul 6, 2018
1 parent 9c3b60c commit 54beb03
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 78 deletions.
5 changes: 3 additions & 2 deletions get-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tar -xvzf openssl-1.0.2n.tar.gz
# -------------------------

# Branch to checkout from Android source code repo
branch=android-8.1.0_r2
branch=android-p-preview-4

# DOWNLOAD necessary files
# -------------------------
Expand All @@ -26,6 +26,7 @@ cd ..
mkdir external
cd external
git clone -b $branch https://android.googlesource.com/platform/external/zlib
git clone -b $branch https://android.googlesource.com/platform/external/mdnsresponder/
git clone -b $branch https://android.googlesource.com/platform/external/mdnsresponder
git clone -b $branch https://android.googlesource.com/platform/external/libusb
patch -p1 -d mdnsresponder < ../../patch/external_mdnsresponder.patch
cd ..
50 changes: 38 additions & 12 deletions makefile.adb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ SRCS+= adb.c
SRCS+= adb_io.c
SRCS+= adb_listeners.c
SRCS+= adb_trace.c
SRCS+= adb_unique_fd.c
SRCS+= adb_utils.c
SRCS+= fdevent.c
SRCS+= services.c
SRCS+= sockets.c
SRCS+= socket_spec.c
SRCS+= sysdeps/errno.c
SRCS+= transport.c
SRCS+= transport_fd.c
SRCS+= transport_local.c
SRCS+= transport_usb.c

Expand All @@ -28,19 +31,20 @@ SRCS+= sysdeps/win32/errno.c
SRCS+= sysdeps/win32/stat.c
SRCS+= client/usb_windows.c

SRCS+= adb_auth_host.c
SRCS+= transport_mdns.c
SRCS+= client/auth.c
SRCS+= client/usb_libusb.c
SRCS+= client/usb_dispatch.c
SRCS+= client/transport_mdns.c

SRCS+= diagnose_usb.c
SRCS+= ../diagnose_usb/diagnose_usb.c

SRCS+= adb_client.c
SRCS+= bugreport.c
SRCS+= client/adb_client.c
SRCS+= client/bugreport.c
SRCS+= client/commandline.c
SRCS+= client/file_sync_client.c
SRCS+= client/main.c
SRCS+= console.c
SRCS+= commandline.c
SRCS+= file_sync_client.c
SRCS+= line_printer.c
SRCS+= services.c
SRCS+= client/console.c
SRCS+= client/line_printer.c
SRCS+= shell_service_protocol.c

VPATH+= ../base
Expand All @@ -52,6 +56,7 @@ SRCS+= utf8.c
SRCS+= errors_windows.c
SRCS+= parsenetaddress.c
SRCS+= quick_exit.c
SRCS+= threads.c

VPATH+= ../libcrypto_utils
SRCS+= android_pubkey.c
Expand All @@ -64,6 +69,20 @@ SRCS+= dnssd_ipc.c
VPATH+= ../../../external/mdnsresponder/mDNSWindows/DLL
SRCS+= dllmain.c

VPATH+= ../../../external/libusb/libusb
SRCS+= core.c
SRCS+= descriptor.c
SRCS+= hotplug.c
SRCS+= io.c
SRCS+= sync.c
SRCS+= strerror.c

VPATH+= ../../../external/libusb/libusb/os
SRCS+= poll_windows.c
SRCS+= threads_windows.c
SRCS+= windows_nt_common.c
SRCS+= windows_winusb.c

CXXFLAGS+= -std=gnu++11

CPPFLAGS+= -D_mkdir=mkdir
Expand All @@ -73,6 +92,7 @@ CPPFLAGS+= -DHAVE_FORKEXEC=1
#CPPFLAGS+= -DHAVE_TERMIO_H
CPPFLAGS+= -DHAVE_SYS_SOCKET_H
CPPFLAGS+= -D_GNU_SOURCE
CPPFLAGS+= -D_POSIX_SOURCE
CPPFLAGS+= -D_XOPEN_SOURCE
CPPFLAGS+= -D_WIN32
CPPFLAGS+= -D_WIN32_WINNT=0x0600
Expand All @@ -88,8 +108,13 @@ CPPFLAGS+= -I.
CPPFLAGS+= -I../include
CPPFLAGS+= -I../../../../openssl-1.0.2n/include
CPPFLAGS+= -I../base/include
CPPFLAGS+= -I../libcrypto_utils/include/
CPPFLAGS+= -I../libcrypto_utils/include
CPPFLAGS+= -I../diagnose_usb/include
CPPFLAGS+= -I../../../external/mdnsresponder/mDNSShared/
CPPFLAGS+= -I../../../external/libusb/include
CPPFLAGS+= -I../../../external/libusb/libusb
CPPFLAGS+= -I../../../external/libusb/libusb/os
CPPFLAGS+= -I../../../external/libusb/windows
CPPFLAGS+= -D__BEGIN_DECLS=/**/
CPPFLAGS+= -D__END_DECLS=/**/
CPPFLAGS+= -DUNICODE=1 -D_UNICODE=1
Expand All @@ -116,7 +141,8 @@ CFLAGS+= -DUSE_MINGW

LDFLAGS+= -L../../../../openssl-1.0.2n -static-libstdc++ -static-libgcc
LDFLAGS+= -municode
LIBS= -lcrypto -lpthread -lws2_32 -lgdi32
LIBS= -lpthread -lcrypto
LIBS+= -lws2_32 -lgdi32 -luserenv
LIBS+= AdbWinUsbApi.dll AdbWinApi.dll
LIBS+= -static -lstdc++
#LIBS+= -lrt
Expand Down
9 changes: 5 additions & 4 deletions makefile.fastboot
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ SRCS+= tcp.c
SRCS+= udp.c
SRCS+= util.c
SRCS+= usb_windows.c
SRCS+= main.c

SRCS+= ../adb/diagnose_usb.c
SRCS+= ../diagnose_usb/diagnose_usb.c

VPATH+= ../../../external/zlib/src
SRCS+= adler32.c
Expand Down Expand Up @@ -52,6 +53,7 @@ SRCS+= strings.c
SRCS+= test_utils.c
SRCS+= errors_windows.c
SRCS+= utf8.c
SRCS+= threads.c

VPATH+= ../libziparchive
SRCS+= zip_archive.c
Expand All @@ -65,8 +67,6 @@ SRCS+= sparse_err.c
SRCS+= sparse_read.c

VPATH+= ../../extras/ext4_utils/
SRCS+= make_ext4fs.c
SRCS+= ext4fixup.c
SRCS+= ext4_utils.c
SRCS+= allocate.c
SRCS+= contents.c
Expand Down Expand Up @@ -122,10 +122,11 @@ CPPFLAGS+= -I../base/include
CPPFLAGS+= -I../libsparse/include
CPPFLAGS+= -I../../../external/zlib
CPPFLAGS+= -I../adb
CPPFLAGS+= -I../mkbootimg
CPPFLAGS+= -I../mkbootimg/include/bootimg
CPPFLAGS+= -I../../extras/ext4_utils/include
CPPFLAGS+= -I../../extras/f2fs_utils
CPPFLAGS+= -I../libziparchive/include
CPPFLAGS+= -I../diagnose_usb/include

CXXFLAGS+= -std=gnu++11
CXXFLAGS+= -mno-ms-bitfields
Expand Down
Loading

0 comments on commit 54beb03

Please sign in to comment.