Skip to content

Commit 4b096e6

Browse files
committed
Merge branch 'dev-small-changes' into dev
2 parents ef99ce1 + 64d0f86 commit 4b096e6

File tree

6 files changed

+43
-19
lines changed

6 files changed

+43
-19
lines changed

.travis.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sudo: required
1+
os: linux
22
dist: bionic
33
language: cpp
44

@@ -33,6 +33,23 @@ addons:
3333
- libgtest-dev
3434
- gcc-9
3535
- g++-9
36+
homebrew:
37+
packages:
38+
- autoconf
39+
- boost
40+
- ffmpeg
41+
- ffms2
42+
- fftw
43+
- freetype
44+
- fribidi
45+
- gettext
46+
- icu4c
47+
- libass
48+
- lua
49+
- luarocks
50+
- m4
51+
- wxmac
52+
update: true
3653

3754
env:
3855
- ''
@@ -69,16 +86,9 @@ script:
6986
make test || travis_terminate 1;
7087
coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null;
7188
else
72-
./build/version.sh .;
7389
mkdir build-dir;
7490
cd build-dir;
7591
cmake -DCMAKE_CXX_FLAGS='-Wall -Wextra -Wno-unused-parameter -pedantic' -DCMAKE_C_FLAGS='-Wall' -DWITH_STARTUPLOG=ON -DWITH_TEST=ON ..;
7692
make -j2 || travis_terminate 1;
7793
make test || travis_terminate 1;
7894
fi
79-
80-
notifications:
81-
email:
82-
- on_success: change
83-
- on_failure: change
84-

.travis/install.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
set -e
44

5-
if [ $TRAVIS_OS_NAME = 'osx' ]; then
6-
brew install autoconf ffmpeg freetype gettext ffms2 fftw fribidi libass m4 icu4c boost wxmac lua luarocks
7-
else
5+
if [ "$TRAVIS_OS_NAME" = 'linux' ]; then
86
# Remove the CMake provided by travis
97
sudo rm -rf /usr/local/cmake*
10-
if [ "$BUILD_SUIT" = "autotools" ]; then
8+
if [ "$BUILD_SUIT" = 'autotools' ]; then
119
sudo pip install -U cpp-coveralls;
1210
git submodule --quiet init;
1311
git submodule --quiet update vendor/googletest;

CMakeLists.txt

+17
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,23 @@ add_executable(Aegisub WIN32
470470
target_link_libraries(Aegisub ${CMAKE_DL_LIBS} libaegisub luabins luajit resrc csri)
471471
target_compile_definitions(Aegisub PRIVATE CMAKE_BUILD)
472472

473+
if(WIN32)
474+
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/build/git_version.h")
475+
message(SEND_ERROR
476+
"build/git_version.h not found.\n"
477+
"Automatic generation of build/git_version.h is not supported on Windows. Please run\n"
478+
" build/version.sh .\n"
479+
"at the source directory from an environment with bash and git. You may use WSL, msys (git bash), or Cygwin."
480+
)
481+
endif()
482+
else()
483+
add_custom_target(git_version build/version.sh .
484+
BYPRODUCTS "${PROJECT_SOURCE_DIR}/build/git_version.h" "${PROJECT_SOURCE_DIR}/build/git_version.xml"
485+
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
486+
)
487+
add_dependencies(Aegisub git_version)
488+
endif()
489+
473490
set(WITH_BUILD_CREDIT OFF CACHE BOOL "Whether show build credit in about dialog")
474491
if(WITH_BUILD_CREDIT)
475492
set(BUILD_CREDIT "" CACHE STRING "Build credit shown in about dialog")

Makefile.target

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ COMMANDS := all install clean distclean test depclean osx-bundle osx-dmg test-au
55

66
# Would be nice to move this somewhere else (Makefile.inc?)
77
ifeq (yes, $(BUILD_DARWIN))
8-
CFLAGS += -mmacosx-version-min=10.8 -gfull -DLUAJIT_ENABLE_GC64
9-
CXXFLAGS += -mmacosx-version-min=10.8 -gfull -DLUAJIT_ENABLE_GC64
10-
LDFLAGS += -mmacosx-version-min=10.8 -Wl,-dead_strip
8+
CFLAGS += -mmacosx-version-min=10.10 -gfull -DLUAJIT_ENABLE_GC64
9+
CXXFLAGS += -mmacosx-version-min=10.10 -gfull -DLUAJIT_ENABLE_GC64
10+
LDFLAGS += -mmacosx-version-min=10.10 -Wl,-dead_strip
1111
LIB_SHARED_LINK = $(LIB_SHARED_LINK_OSX)
1212
endif
1313

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ and optional dependencies:
3636
You can use the package manager provided by your distro to install these dependencies. Package name varies by distro. Some useful references are:
3737

3838
* For ArchLinux, refer to [AUR](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=aegisub-git).
39-
* For Ubuntu, refer to [Travis](https://github.com/wangqr/Aegisub/blob/dev/.travis.yml#L14-L35).
39+
* For Ubuntu, refer to [Travis](.travis.yml#L14-L35).
4040
* For macOS, see [Special notice for macOS](https://github.com/wangqr/Aegisub/wiki/Special-notice-for-macOS) on project Wiki.
4141

4242
After installing the dependencies, you can clone and build Aegisub with:

vendor/luajit/src/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ TARGET_STRIP= $(CROSS)strip
215215
#TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
216216
TARGET_LIBPATH= $(CURDIR)
217217
TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
218-
#TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
219-
TARGET_DYLIBNAME= libluajit-aegisub.so
218+
TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
220219
TARGET_DYLIBPATH= $(TARGET_LIBPATH)/$(TARGET_DYLIBNAME)
221220
TARGET_DLLNAME= lua$(NODOTABIVER).dll
222221
TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
@@ -503,7 +502,7 @@ LIB_VMDEFP= $(LIB_VMDEF)
503502

504503
LUAJIT_O= luajit.o
505504
LUAJIT_A= libluajit.a
506-
LUAJIT_SO= libluajit-aegisub.so
505+
LUAJIT_SO= libluajit.so
507506
LUAJIT_T= luajit
508507

509508
ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)

0 commit comments

Comments
 (0)