Skip to content

Commit

Permalink
Update Build System
Browse files Browse the repository at this point in the history
- Add `-mtune=generic` compiler flag where possible
- Update Gradle Plugin for Android from 8.2.0 to 8.2.2
- Update Android Support library v4 from 23.3.0 to version 25.4.0
  • Loading branch information
faf0 committed Jan 28, 2024
1 parent 5076793 commit 5ff0cb7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Saturn.emu/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(IMAGINE_PATH)/make/imagineAppBase.mk

ifeq ($(SUBARCH), armv6)
# compile app code in ARMv7, link to ARMv6 libs so dynarec works
android_cpuFlags = -marm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp
android_cpuFlags = -marm -march=armv7-a -mtune=generic -mfloat-abi=softfp -mfpu=vfp
endif

ifneq ($(config_compiler),clang)
Expand Down
2 changes: 1 addition & 1 deletion imagine/make/android-armv7-gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android_armv7State ?= -mthumb
android_armState := $(android_armv7State)
android_cpuFlags += $(android_armv7State)
android_cxxSupportLibs := -landroid_support
ASMFLAGS = --noexecstack -EL -mfloat-abi=softfp -march=armv7-a
ASMFLAGS = --noexecstack -EL -mfloat-abi=softfp -march=armv7-a -mtune=generic
LDFLAGS_SYSTEM += -Wl,--fix-cortex-a8

include $(buildSysPath)/android-gcc.mk
Expand Down
4 changes: 2 additions & 2 deletions imagine/make/gradle/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.0'
classpath 'com.android.tools.build:gradle:8.2.2'
}
}

Expand Down Expand Up @@ -68,6 +68,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: '*.aar')
implementation "com.android.support:support-v4:23.3.+"
implementation "com.android.support:support-v4:25.4.+"
}

2 changes: 1 addition & 1 deletion imagine/make/linux-x86_64-gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include $(buildSysPath)/linux-gcc.mk

ARCH := x86_64
ifeq ($(config_compiler),clang)
CFLAGS_CODEGEN += -march=x86-64
CFLAGS_CODEGEN += -march=x86-64 -mtune=generic
else
CFLAGS_CODEGEN += -m64 -mtune=generic
LDFLAGS_SYSTEM += -m64
Expand Down
2 changes: 1 addition & 1 deletion imagine/src/base/android/imagine-v9/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.0'
classpath 'com.android.tools.build:gradle:8.2.2'
}
}

Expand Down

0 comments on commit 5ff0cb7

Please sign in to comment.