Skip to content

makefile fixes#13

Merged
oleavr merged 4 commits intofrida:masterfrom
giantpune:fix/makefiles
Feb 3, 2017
Merged

makefile fixes#13
oleavr merged 4 commits intofrida:masterfrom
giantpune:fix/makefiles

Conversation

@giantpune
Copy link
Contributor

if calling make from a makefile, use $(MAKE) which allows -j option to work properly
adb push doesn work like cp where you can cp src1 src2 src3 dst. you have to push each file individually in build/armeabi-v7a/runner build/tests.dex build/frida-java.js

…le files to adb push because it doesnt work like 'cp'
Copy link
Member

@oleavr oleavr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

test/Makefile Outdated
deploy: build/armeabi-v7a/runner build/tests.dex build/frida-java.js
adb shell "rm -rf $(deploy_data_dir) && mkdir -p $(deploy_data_dir)"
adb push $^ $(deploy_data_dir)
$(foreach foo, $(^), adb push $(foo) $(deploy_data_dir))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is supported by the latest adb so let's be blunt and assume that :)

test/Makefile Outdated
test_classes := $(patsubst %.java,%.class,$(test_sources))

android_jar := $(shell echo $(ANDROID_SDK_ROOT))/platforms/android-23/android.jar
android_jar := $(ANDROID_SDK_ROOT)/platforms/android-23/android.jar
Copy link
Member

@oleavr oleavr Feb 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The echo hack was to expand the tilde in the default ANDROID_SDK_ROOT. Perhaps we should do: $(abspath $(ANDROID_SDK_ROOT)) instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants