Fix examples build (configure/make)

Fix more issues caused by moving fltk-versions from examples to test
and adding examples to the CMake build process (gitlab-ci)
This commit is contained in:
Albrecht Schlosser 2020-08-21 19:56:51 +02:00
parent 9ba4cd06dc
commit 206675a3b1
6 changed files with 23 additions and 6 deletions

View File

@ -33,7 +33,7 @@ build-autotools:
# install the necessary build tools
before_script:
- apt update && apt -y install make autoconf man
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev
- apt -y install libxcursor-dev libxinerama-dev libasound2-dev
- apt -y install libpango1.0-dev libcairo2-dev
script:
@ -47,7 +47,7 @@ build-autotools:
- test/cairo_test
- test/glpuzzle
- test/unittests
- examples/fltk-versions
- test/fltk-versions
# Build with CMake and Ninja (default configuration)
@ -56,11 +56,11 @@ build-cmake:
# install the necessary build tools
before_script:
- apt update && apt -y install cmake ninja-build
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev
- apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev
- apt -y install libxcursor-dev libxinerama-dev libasound2-dev
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja ..
- cmake -DCMAKE_BUILD_TYPE=Debug -DFLTK_BUILD_EXAMPLES=ON -G Ninja ..
- time ninja
artifacts:
paths:

1
examples/.gitignore vendored
View File

@ -6,7 +6,6 @@
browser-simple
clipboard
draggable-group
fltk-versions
howto-add_fd-and-popen
howto-browser-with-icons
howto-drag-and-drop

View File

@ -8,7 +8,6 @@ SHELL = /bin/sh
ALL = browser-simple$(EXEEXT) \
clipboard$(EXEEXT) \
draggable-group$(EXEEXT) \
fltk-versions$(EXEEXT) \
howto-add_fd-and-popen$(EXEEXT) \
howto-browser-with-icons$(EXEEXT) \
howto-drag-and-drop$(EXEEXT) \

1
test/.gitignore vendored
View File

@ -46,6 +46,7 @@ fast_slow
fast_slow.cxx
fast_slow.h
file_chooser
fltk-versions
fonts
forms
fractals

View File

@ -43,6 +43,7 @@ CPPFILES =\
editor.cxx \
fast_slow.cxx \
file_chooser.cxx \
fltk-versions.cxx \
fonts.cxx \
forms.cxx \
fractals.cxx \
@ -128,6 +129,7 @@ ALL = \
editor$(EXEEXT) \
fast_slow$(EXEEXT) \
file_chooser$(EXEEXT) \
fltk-versions$(EXEEXT) \
fonts$(EXEEXT) \
forms$(EXEEXT) \
hello$(EXEEXT) \
@ -405,6 +407,8 @@ file_chooser$(EXEEXT): file_chooser.o $(IMGLIBNAME)
$(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) file_chooser.o -o $@ $(LINKFLTKIMG) $(LDLIBS)
$(OSX_ONLY) ../fltk-config --post $@
fltk-versions$(EXEEXT): fltk-versions.o
fonts$(EXEEXT): fonts.o
forms$(EXEEXT): forms.o

View File

@ -710,6 +710,20 @@ file_chooser.o: ../FL/Fl_Valuator.H
file_chooser.o: ../FL/Fl_Widget.H
file_chooser.o: ../FL/Fl_Window.H
file_chooser.o: ../FL/platform_types.h
fltk-versions.o: ../FL/abi-version.h
fltk-versions.o: ../FL/Enumerations.H
fltk-versions.o: ../FL/Fl.H
fltk-versions.o: ../FL/fl_ask.H
fltk-versions.o: ../FL/Fl_Bitmap.H
fltk-versions.o: ../FL/Fl_Box.H
fltk-versions.o: ../FL/Fl_Export.H
fltk-versions.o: ../FL/Fl_Group.H
fltk-versions.o: ../FL/Fl_Image.H
fltk-versions.o: ../FL/fl_types.h
fltk-versions.o: ../FL/fl_utf8.h
fltk-versions.o: ../FL/Fl_Widget.H
fltk-versions.o: ../FL/Fl_Window.H
fltk-versions.o: ../FL/platform_types.h
fonts.o: ../FL/abi-version.h
fonts.o: ../FL/Enumerations.H
fonts.o: ../FL/filename.H