File tree 6 files changed +43
-19
lines changed
6 files changed +43
-19
lines changed Original file line number Diff line number Diff line change 1
- sudo : required
1
+ os : linux
2
2
dist : bionic
3
3
language : cpp
4
4
@@ -33,6 +33,23 @@ addons:
33
33
- libgtest-dev
34
34
- gcc-9
35
35
- 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
36
53
37
54
env :
38
55
- ' '
@@ -69,16 +86,9 @@ script:
69
86
make test || travis_terminate 1;
70
87
coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null;
71
88
else
72
- ./build/version.sh .;
73
89
mkdir build-dir;
74
90
cd build-dir;
75
91
cmake -DCMAKE_CXX_FLAGS='-Wall -Wextra -Wno-unused-parameter -pedantic' -DCMAKE_C_FLAGS='-Wall' -DWITH_STARTUPLOG=ON -DWITH_TEST=ON ..;
76
92
make -j2 || travis_terminate 1;
77
93
make test || travis_terminate 1;
78
94
fi
79
-
80
- notifications :
81
- email :
82
- - on_success : change
83
- - on_failure : change
84
-
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
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
8
6
# Remove the CMake provided by travis
9
7
sudo rm -rf /usr/local/cmake*
10
- if [ " $BUILD_SUIT " = " autotools" ]; then
8
+ if [ " $BUILD_SUIT " = ' autotools' ]; then
11
9
sudo pip install -U cpp-coveralls;
12
10
git submodule --quiet init;
13
11
git submodule --quiet update vendor/googletest;
Original file line number Diff line number Diff line change @@ -470,6 +470,23 @@ add_executable(Aegisub WIN32
470
470
target_link_libraries (Aegisub ${CMAKE_DL_LIBS} libaegisub luabins luajit resrc csri)
471
471
target_compile_definitions (Aegisub PRIVATE CMAKE_BUILD)
472
472
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
+
473
490
set (WITH_BUILD_CREDIT OFF CACHE BOOL "Whether show build credit in about dialog" )
474
491
if (WITH_BUILD_CREDIT)
475
492
set (BUILD_CREDIT "" CACHE STRING "Build credit shown in about dialog" )
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ COMMANDS := all install clean distclean test depclean osx-bundle osx-dmg test-au
5
5
6
6
# Would be nice to move this somewhere else (Makefile.inc?)
7
7
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
11
11
LIB_SHARED_LINK = $(LIB_SHARED_LINK_OSX)
12
12
endif
13
13
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ and optional dependencies:
36
36
You can use the package manager provided by your distro to install these dependencies. Package name varies by distro. Some useful references are:
37
37
38
38
* 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 ) .
40
40
* For macOS, see [ Special notice for macOS] ( https://github.com/wangqr/Aegisub/wiki/Special-notice-for-macOS ) on project Wiki.
41
41
42
42
After installing the dependencies, you can clone and build Aegisub with:
Original file line number Diff line number Diff line change @@ -215,8 +215,7 @@ TARGET_STRIP= $(CROSS)strip
215
215
# TARGET_LIBPATH= $(or $(PREFIX),/usr/local)/$(or $(MULTILIB),lib)
216
216
TARGET_LIBPATH = $(CURDIR )
217
217
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
220
219
TARGET_DYLIBPATH = $(TARGET_LIBPATH ) /$(TARGET_DYLIBNAME )
221
220
TARGET_DLLNAME = lua$(NODOTABIVER ) .dll
222
221
TARGET_XSHLDFLAGS = -shared -fPIC -Wl,-soname,$(TARGET_SONAME )
@@ -503,7 +502,7 @@ LIB_VMDEFP= $(LIB_VMDEF)
503
502
504
503
LUAJIT_O = luajit.o
505
504
LUAJIT_A = libluajit.a
506
- LUAJIT_SO = libluajit-aegisub .so
505
+ LUAJIT_SO = libluajit.so
507
506
LUAJIT_T = luajit
508
507
509
508
ALL_T = $(LUAJIT_T ) $(LUAJIT_A ) $(LUAJIT_SO ) $(HOST_T )
You can’t perform that action at this time.
0 commit comments