Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1

Open
wants to merge 276 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
8f694f0
pending with then mouse.
qPCR4vir Mar 2, 2016
833d4d6
fail to write in notepad!?
qPCR4vir Mar 2, 2016
ec84b2a
minimal GUI test exec(1, [](){},1,&fm)
qPCR4vir Mar 2, 2016
d8628be
undo automatic CLion additions
qPCR4vir Mar 2, 2016
7cc76fd
fix
qPCR4vir Mar 2, 2016
8fed169
int main(){} -> main.cpp [skip ci]
qPCR4vir Mar 3, 2016
4971061
std::cout << "Hello main...\n";
qPCR4vir Mar 3, 2016
9b33611
#include <nana/gui/wvl.hpp>
qPCR4vir Mar 3, 2016
a45c0dd
nana form fm.show()
qPCR4vir Mar 3, 2016
11e0579
Update main.cpp
qPCR4vir Mar 3, 2016
194afc6
<< std::endl;
qPCR4vir Mar 3, 2016
4bc930f
Update main.cpp
qPCR4vir Mar 3, 2016
893af01
std
qPCR4vir Mar 3, 2016
c9f6731
Update main.cpp
qPCR4vir Mar 3, 2016
6d698e9
Update main.cpp
qPCR4vir Mar 3, 2016
147e7d1
Update main.cpp
qPCR4vir Mar 3, 2016
fa5adf4
Update main.cpp
qPCR4vir Mar 3, 2016
9c4e969
exec();
qPCR4vir Mar 3, 2016
08c9379
Update main.cpp
qPCR4vir Mar 3, 2016
f61236f
Update MontiHall.cpp
qPCR4vir Mar 3, 2016
9719c12
Update a_group_impl.cpp
qPCR4vir Mar 3, 2016
8df5ea7
Update animate-bmp.cpp
qPCR4vir Mar 3, 2016
a738474
Update HelloWord.cpp
qPCR4vir Mar 3, 2016
2926a43
Update background-effects.cpp
qPCR4vir Mar 3, 2016
5588fd9
Update categ.cpp
qPCR4vir Mar 3, 2016
74b23ed
Update decore.cpp
qPCR4vir Mar 3, 2016
5ce5806
Update example.button.cpp
qPCR4vir Mar 3, 2016
b905ead
Update dock.cpp
qPCR4vir Mar 3, 2016
2930095
Update drag-button.cpp
qPCR4vir Mar 3, 2016
ab90f90
Update draw.cpp
qPCR4vir Mar 3, 2016
13ed679
Update file_explorer.cpp
qPCR4vir Mar 3, 2016
a66b3a2
Update example_menu.cpp
qPCR4vir Mar 3, 2016
b0cc047
Update example_listbox.cpp
qPCR4vir Mar 3, 2016
7e80c71
Update example_combox.cpp
qPCR4vir Mar 3, 2016
26259f1
Update example.button.cpp
qPCR4vir Mar 3, 2016
bade242
automatic GUI tested in windows VS2015
qPCR4vir Mar 3, 2016
64f0a7a
more
qPCR4vir Mar 3, 2016
f53b3ed
fix main
qPCR4vir Mar 4, 2016
cf1d7d8
fix
qPCR4vir Mar 4, 2016
232e1bf
fix
qPCR4vir Mar 4, 2016
b92a46e
adding automatic GUI testing
qPCR4vir Mar 4, 2016
f67d6ca
all demos adapted
qPCR4vir Mar 5, 2016
a4fa328
fix exec
qPCR4vir Mar 5, 2016
5678764
fix main
qPCR4vir Mar 5, 2016
dc66d25
"Press a char: !
qPCR4vir Mar 5, 2016
22e21a6
added a new parameter for basic_event::emit method
cnjinhao Apr 18, 2016
0f06c00
Add a new example
cnjinhao Apr 20, 2016
1653e60
Update stretch_image.cpp
cnjinhao May 21, 2016
ad837a5
a workaround for VC2013
cnjinhao Jun 21, 2016
944b6b3
a fix
cnjinhao Jun 21, 2016
533e4fc
add -lstd++fs
cnjinhao Jun 21, 2016
5b87eca
option NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS off
cnjinhao Jun 21, 2016
96399f5
remove helloworld_demo
cnjinhao Jun 21, 2016
1a4268a
adapte to v1.4
cnjinhao Jun 21, 2016
de2557d
using explicit namespaces fs
qPCR4vir Jun 24, 2016
b50339b
FIX crash in VS consistently using filesysten_ext
qPCR4vir Jun 24, 2016
30f672a
set in config...
qPCR4vir Jun 25, 2016
ad50fbd
Add a new example
cnjinhao Apr 20, 2016
fe89fd7
preparing build independently at nana build
qPCR4vir Jun 26, 2016
715aacb
ignore *.VC.db
qPCR4vir Jun 27, 2016
ed86fda
finding nana lib
qPCR4vir Jun 27, 2016
195f32e
finding nana lib in ../nana_lib/lib
qPCR4vir Jun 27, 2016
7d99a53
force libnana.a
qPCR4vir Jun 27, 2016
29845ce
link exe flags, use dir/
qPCR4vir Jun 27, 2016
093db2e
find_library works
qPCR4vir Jun 27, 2016
518206d
target_link_libraries(${test}) only
qPCR4vir Jun 27, 2016
4c09f25
restore nanalib
qPCR4vir Jun 27, 2016
0d6c860
"-l${nana_lib}"
qPCR4vir Jun 27, 2016
078c1c7
target_link_libraries(${test} ${nana_lib})
qPCR4vir Jun 27, 2016
7c7e494
return all options
qPCR4vir Jun 27, 2016
63b9760
install DCMAKE_INSTALL_PREFIX=..
qPCR4vir Jun 27, 2016
f3ac96d
install(DIRECTORY ${examples_dir} DESTINATION ${examples_dir} )
qPCR4vir Jun 27, 2016
3c2d580
add more options to find nana
qPCR4vir Jun 28, 2016
351ec05
add more options to find nana
qPCR4vir Jun 28, 2016
72bc9b1
Use my onw absolute install path (CLion workaround!)
qPCR4vir Jun 28, 2016
99ce293
add travis to demos
qPCR4vir Jun 28, 2016
28f90c8
logo travis [ci skip]
qPCR4vir Jun 28, 2016
b3fc279
cleaning
qPCR4vir Jun 30, 2016
5352b26
Merge remote-tracking branch 'remotes/origin/dev_nana_fs' into dev_na…
qPCR4vir Jun 30, 2016
ce293e1
nana links? order?
qPCR4vir Jun 30, 2016
aba28e3
Merge branch 'develop_with_nana' into develop
qPCR4vir Jun 30, 2016
29ea465
more places to find nana.lib
qPCR4vir Jul 7, 2016
6ed640f
test all in order
qPCR4vir Jul 19, 2016
c1458eb
works with: branch=hotfix-1.4 https://github.com/cnjinhao/nana.git
qPCR4vir Jul 19, 2016
023aae5
34 of 54 run
qPCR4vir Jul 19, 2016
fd7d574
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir Jul 20, 2016
a2d0b29
works with: branch=master https://github.com/cnjinhao/nana.git
qPCR4vir Jul 20, 2016
5541903
include map
cnjinhao Aug 10, 2016
0e1c23b
include map
cnjinhao Aug 10, 2016
5f8c19d
Added notify_status
cnjinhao Sep 24, 2016
81d2454
Added notify_status
cnjinhao Sep 24, 2016
36ea119
include map
cnjinhao Aug 10, 2016
820ad9b
include map
cnjinhao Aug 10, 2016
8dc0aa8
Added notify_status
cnjinhao Sep 24, 2016
c74b366
Travis usage of branchs in *nana* and *nana-demo*:
qPCR4vir Nov 15, 2016
022e6df
include map
cnjinhao Aug 10, 2016
1fc0e7b
include map
cnjinhao Aug 10, 2016
5632c25
Added notify_status
cnjinhao Sep 24, 2016
a65c692
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir Nov 15, 2016
67f0ac8
use cnjinhao/nana/hotfix-1.4.1
qPCR4vir Nov 15, 2016
55cf844
Travis usage of branchs in *nana* and *nana-demo*:
qPCR4vir Nov 15, 2016
2a2cb78
readme travis info- gcc version, branch correspondence
qPCR4vir Nov 15, 2016
186c901
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir Nov 15, 2016
fd0b4e3
add .gitignore .travis.yml and README.md to the solution
qPCR4vir Nov 15, 2016
0ec392c
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir Nov 15, 2016
2bf5a80
Merge branch 'hotfix-1.4_with_nana' into develop_with_nana
qPCR4vir Nov 15, 2016
00611b9
link to nana/develop
qPCR4vir Nov 15, 2016
4ebf3b0
Merge branch 'develop_with_nana' into develop
qPCR4vir Nov 15, 2016
a37f969
add license
qPCR4vir Jan 12, 2017
a4f816a
ignore vs, cmake and codelite temp
qPCR4vir May 2, 2017
403c60d
https://github.com/cnjinhao/nana/issues/191#issuecomment-287226668
qPCR4vir May 2, 2017
a30d6ba
vc2017
qPCR4vir May 2, 2017
292143c
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir May 2, 2017
d9acfd4
Merge branch 'hotfix-1.4' into develop_with_nana
qPCR4vir May 2, 2017
a4b7580
Merge branch 'develop_with_nana' into develop
qPCR4vir May 2, 2017
2cffc52
add license
qPCR4vir Jan 12, 2017
1afe53e
add license
qPCR4vir Jan 12, 2017
3bd0078
add license
qPCR4vir Jan 12, 2017
e5794aa
Merge branch 'hotfix-1.4_with_nana' into hotfix-1.4
qPCR4vir May 2, 2017
9fda29f
Merge branch 'develop'
qPCR4vir May 2, 2017
49961d1
clone -branch=hotfix-1.5 cnjinhao/nana
qPCR4vir May 2, 2017
657b726
Merge branch 'hotfix-1.5_with_nana' into hotfix-1.5
qPCR4vir May 2, 2017
9350093
updating to hotfix-1.5
qPCR4vir May 2, 2017
68cd5d6
Merge branch 'hotfix-1.5_with_nana' into hotfix-1.5
qPCR4vir May 2, 2017
e38ed21
this example requires 1.5.4
cnjinhao Jul 25, 2017
591b178
Merge pull request #12 from qPCR4vir/cnjinhao-patch-1
qPCR4vir Jul 27, 2017
fb6d7e8
this example requires 1.5.4
cnjinhao Jul 25, 2017
3afa71b
Merge branch 'hotfix-1.5_with_nana' into develop_with_nana
qPCR4vir Jul 27, 2017
a9c66c3
add new example listbox-stl for VS2017
qPCR4vir Aug 27, 2017
56e2116
add new example textbox_line_number for VS2017
qPCR4vir Aug 27, 2017
67e2b4d
new solution for VS2017
qPCR4vir Aug 27, 2017
da8baa9
add new #ifdef NANA_AUTOMATIC_GUI_TESTING for a_group_impl
qPCR4vir Aug 27, 2017
906d797
#ifdef NANA_AUTOMATIC_GUI_TESTING
qPCR4vir Aug 27, 2017
0bb467d
calculator #ifdef NANA_AUTOMATIC_GUI_TESTING, and reduce wait for travis
qPCR4vir Aug 27, 2017
9694433
fix: NANA_AUTOMATIC_GUI_TESTING, and test faster for travis
qPCR4vir Aug 27, 2017
57ba725
Merge branch 'hotfix-1.5_with_nana' into hotfix-1.5
qPCR4vir Aug 27, 2017
afecac6
Merge branch 'hotfix-1.5_with_nana' into develop_with_nana
qPCR4vir Aug 27, 2017
7b14257
Merge branch 'develop_with_nana' into develop
qPCR4vir Aug 27, 2017
f4c0dac
Merge branch 'hotfix-1.5'
qPCR4vir Aug 27, 2017
b816789
use git clone --branch=hotfix-1.5.4
qPCR4vir Aug 27, 2017
44c6600
Merge branch 'hotfix-1.5_with_nana' into hotfix-1.5
qPCR4vir Aug 27, 2017
e4aefc2
semantics of color::blend(blending_color, fade_rate) changed since 1.5.0
qPCR4vir Aug 28, 2017
5f4b59a
Add fontconfig
cnjinhao Sep 2, 2017
67f5558
no need to use Wait()
qPCR4vir Sep 4, 2017
62f69cf
delete example project to have uniformity in the solution
qPCR4vir Sep 4, 2017
218db6c
how ro use set(CMAKE_DEBUG_POSTFIX "_d") ??
qPCR4vir Sep 16, 2017
340e1e6
Add fontconfig
cnjinhao Sep 2, 2017
f3f1ee1
Merge branch 'hotfix-1.5_with_nana' into hotfix-1.5
qPCR4vir Sep 16, 2017
cc28f13
Add fontconfig
cnjinhao Sep 2, 2017
5293ad3
Merge branch 'develop_with_nana' into develop
qPCR4vir Sep 16, 2017
c0ce2da
Merge remote-tracking branch 'origin/develop' into develop
qPCR4vir Sep 16, 2017
4916845
fix compilation with boost::filesystem
pavelxdd Nov 27, 2017
eb82d19
Add boost.system to GCC4.9 linker options
cnjinhao Jan 24, 2018
35018d2
Add boost.system
cnjinhao Jan 24, 2018
fcfda27
Update CMakeLists.txt
cnjinhao Jan 24, 2018
328a47a
Update .travis.yml
cnjinhao Jan 25, 2018
2c0d330
Update CMakeLists.txt
cnjinhao Jan 25, 2018
69568c6
Update CMakeLists.txt
cnjinhao Jan 25, 2018
f60003f
Update CMakeLists.txt
cnjinhao Jan 25, 2018
19b3584
Update CMakeLists.txt
cnjinhao Jan 25, 2018
a1b4884
Merge pull request #13 from pavelxdd/boostfix
qPCR4vir Jan 26, 2018
4ee8249
Merge remote-tracking branch 'origin/develop' into hotfix-1.5
qPCR4vir Jan 26, 2018
aa25a1b
Merge branch 'hotfix-1.5' into develop
qPCR4vir Jan 26, 2018
4d5c30d
fix range for
qPCR4vir Jan 27, 2018
bd576e9
boost::filesystem::path doesn't have a generic_u8string method,
qPCR4vir Jan 27, 2018
08d45e5
more boost::filesystem::path doesn't have a generic_u8string method,
qPCR4vir Jan 28, 2018
713a2c8
fix travis - it seemd that a bin already exists from 20170901
qPCR4vir Jan 28, 2018
6aff13f
Merge branch 'develop' into hotfix-1.5 linked to hotfix-1.5.6
qPCR4vir Jan 29, 2018
b392057
fix the translation string.
cnjinhao Apr 18, 2018
d815e97
nana-demo hotfix point to nana hotfix-1.6.1
qPCR4vir Jul 14, 2018
6aad09c
Merge branch 'hotfix'
qPCR4vir Jul 14, 2018
f2b4fe7
message CMAKE_CXX_COMPILER_VERSION
qPCR4vir Jul 25, 2018
37e2f6a
more nana paths?
qPCR4vir Aug 16, 2018
5a166a0
VERSION
qPCR4vir Aug 16, 2018
dc9e8b3
CLion have install
qPCR4vir Aug 16, 2018
9fc274b
travis gcc 8
qPCR4vir Aug 16, 2018
002d2de
travis cmake 3.12 ?
qPCR4vir Aug 16, 2018
fa25212
travis cmake 3.12 ? ubuntu install
qPCR4vir Aug 16, 2018
adc5cb7
fix? just upgrade version
qPCR4vir Aug 16, 2018
014468a
git clone nana branch=CMake
qPCR4vir Aug 16, 2018
1344ba0
git clone branch=CMake https://github.com/qPCR4vir/nana
qPCR4vir Aug 16, 2018
fb10d1a
doc
qPCR4vir Aug 23, 2018
ee74b4a
simplify cmake usage with include nana
qPCR4vir Sep 6, 2018
dd2fd58
Merge remote-tracking branch 'origin/cmake-dev' into cmake-dev
qPCR4vir Sep 6, 2018
f4ea786
use add_subdirectory(../nana ../cmake-nana-build-${CONFIG} )
qPCR4vir Sep 8, 2018
fad1eb7
fix cd .. in travis ?
qPCR4vir Sep 8, 2018
2ad4f44
fix use cmake-dev travis ?
qPCR4vir Sep 9, 2018
64239f2
build in nana?
qPCR4vir Sep 11, 2018
68e7254
fix: install to nana-test
qPCR4vir Oct 1, 2018
699e796
more animate-bmp
qPCR4vir Oct 1, 2018
aa3c328
trying to fix a definition duplication of boolean window.h vs jpeg
qPCR4vir Oct 1, 2018
3b8a835
more info? not really... ?
qPCR4vir Oct 2, 2018
21dfc4c
travis cd ../nana-test and jpeg tested
qPCR4vir Oct 2, 2018
f7be5bd
travis cd bin
qPCR4vir Oct 2, 2018
17ae61d
debug
cnjinhao Oct 2, 2018
59134f9
debug
cnjinhao Oct 2, 2018
73334bf
debug
cnjinhao Oct 2, 2018
144827a
restore
cnjinhao Oct 2, 2018
0fc054c
debug
cnjinhao Oct 2, 2018
794e471
restore
cnjinhao Oct 2, 2018
1a98b0f
reuse NANA_CMAKE_VERBOSE_PREPROCESSOR
qPCR4vir Oct 4, 2018
f10371d
fix build dir name ?
qPCR4vir Oct 5, 2018
af4d61c
Merge remote-tracking branch 'origin/master' into cmake-dev
qPCR4vir Jan 21, 2019
385d986
Specify /source-charset:utf-8 option
Feb 24, 2019
35fd9b7
git clone branch=dev from qPCR4vir/nana
qPCR4vir Feb 26, 2019
bde32a3
use std::filesystem::path instead of std::string
cnjinhao Mar 6, 2019
be82918
a small fix
cnjinhao Mar 6, 2019
14c1f06
a small fix
cnjinhao Mar 6, 2019
9b551d7
update filebox-txt.cpp
cnjinhao Mar 7, 2019
c8cf2f6
fix add - libxcursor-dev in travis
Mar 19, 2019
c6e0136
Merge remote-tracking branch 'origin/cmake-dev' into cmake-dev
Mar 19, 2019
b29bb21
Adapted to nana v1.7 - background-effects: crash by window-resize som…
qPCR4vir Mar 20, 2019
ecb83a5
nana-demo cmake-dev point to qPCR4vir/nana dev. No BOOST. GCC8 only
qPCR4vir Mar 20, 2019
416b8ce
update readme
qPCR4vir Mar 21, 2019
7611ff2
clone branch=hotfix-1.7 from cnjinhao/nana
qPCR4vir Mar 21, 2019
9e05db5
clone branch=master from cnjinhao/nana
qPCR4vir Mar 21, 2019
23cdde5
clone branch=develop from cnjinhao/nana
qPCR4vir Mar 21, 2019
9022940
Merge pull request #16 from beru/inputbox_source_charset_utf-8
qPCR4vir Mar 22, 2019
c4f17f7
treebox disallows the key to be seperatr after 1.7
cnjinhao Apr 19, 2019
333de48
Changed the parameter of timer.interval
cnjinhao Apr 21, 2019
3289e36
Changed the parameter type of timer::interval
cnjinhao Apr 21, 2019
5a04342
Changed the parameter type of timer::interval
cnjinhao Apr 21, 2019
046280a
Merge branch 'hotfix' into develop
qPCR4vir May 15, 2019
0a24d94
fix min form size
qPCR4vir May 15, 2019
ce2b0b8
<nana/gui/wvl.hpp> is removed
cnjinhao Jul 18, 2019
07b58cc
<nana/gui/wvl.hpp> is removed
cnjinhao Jul 18, 2019
2406cec
<nana/gui/wvl.hpp> is removed
cnjinhao Jul 18, 2019
2b89ec2
<nana/gui/wvl.hpp> in favor of <nana/gui.hpp>
cnjinhao Jul 18, 2019
8bf7a94
Merge remote-tracking branch 'origin/develop'
qPCR4vir Jul 30, 2019
facacf6
Merge branch 'master' into hotfix
qPCR4vir Jul 30, 2019
a6f3a63
not wanting to start xfvb
qPCR4vir Jul 31, 2019
4ed50dc
similar to nana
qPCR4vir Jul 31, 2019
3cfcb09
revert generic_u8string to generic_string()
qPCR4vir Nov 5, 2019
4604d6a
using nana::filesystem - todo review!!
qPCR4vir Nov 5, 2019
ecaa151
Merge branch 'develop'
qPCR4vir Dec 2, 2019
d752c27
Merge branch 'hotfix'
qPCR4vir Dec 2, 2019
eaeb6c1
VC2019
qPCR4vir Dec 5, 2019
86d483b
update travis
qPCR4vir Dec 5, 2019
c45a152
deprecate example
qPCR4vir Dec 5, 2019
984e7b4
code review
qPCR4vir Dec 6, 2019
9c1724d
Merge remote-tracking branch 'origin/master'
qPCR4vir Dec 6, 2019
83bf100
nana:: fix
qPCR4vir Dec 6, 2019
f011066
add all test to cmake to run using ctest in build directory
qPCR4vir Dec 12, 2019
eb3427f
travis test with ctest?
qPCR4vir Dec 12, 2019
e59ad99
back to run "manually" - better output
qPCR4vir Dec 12, 2019
9101e0b
set working dir
qPCR4vir Dec 12, 2019
4969d64
fix LanguageStandard>stdcpp17 in all vc2019 projects
qPCR4vir Jan 17, 2020
8ad0b9c
experiment with cmake and VS2019
qPCR4vir Feb 5, 2020
2a8d7da
use std::this_thread::sleep_for in nana 1.8
qPCR4vir May 1, 2020
26f5e5f
Update stretch_image.cpp
cnjinhao Jun 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#This .gitignore created by qPCR4vir
#ignore thumbnails created by windows
# This .gitignore was created by qPCR4vir

# ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio

# Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
Expand Down Expand Up @@ -34,4 +36,13 @@ _ReSharper*/
lib/
bin/
*.opendb
.idea/
.idea/
*.VC.db
.vs/

# cmake bulids
cmake-build*/

# codelite
.codelite/

131 changes: 131 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
sudo: false
language: generic

cache:
apt: true
directories:
- /tmp/tools

matrix:
include:
- env: CXX=g++-8
addons:
apt:
packages:
- g++-8
- libjpeg8-dev
- libpng-dev
- libasound2-dev
- alsa-utils
- alsa-oss
- libx11-dev
- libxft-dev
- libxcursor-dev
sources:
- ubuntu-toolchain-r-test

allow_failures:
- env: CXX=clang++-3.8 CC=clang-3.8
addons:
apt:
packages:
- clang-3.8
- libjpeg8-dev
- libpng-dev
- libasound2-dev
- alsa-utils
- alsa-oss
- libx11-dev
- libxft-dev
- libxcursor-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise

before_install:
# donwload, compile and install nana first
# we are in: 'user'/nana-demo/
- cd ..
# we are in: 'user'/
- git clone --depth=1 --branch=minor_change https://github.com/qPCR4vir/nana.git nana
# now we have 'user'/nana-demo, 'user'/nana/ and we are in: 'user'/
- export PATH="$HOME/bin:$PATH"
- wget --no-check-certificate --no-clobber -O /tmp/tools/cmake https://cmake.org/files/v3.12/cmake-3.12.0-rc1-Linux-x86_64.sh || true
- chmod -R +x /tmp/tools

install:
- /tmp/tools/cmake --prefix="$HOME" --exclude-subdir

before_script :
- mkdir demo-build
- cd demo-build
# now we have 'user'/nana-demo, 'user'/nana/ , 'user'/demo-build/ and we are in: 'user'/demo-build/

services:
# travis don't have a physical monitor. We need to install an emulator:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
- xvfb

script:
- cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_ENABLE_PNG=OFF -DNANA_CMAKE_BUILD_DEMOS=ON -DNANA_CMAKE_ENABLE_AUDIO=OFF -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_BOOST_FILESYSTEM_FORCE=OFF -DNANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF
- make install
# - ctest # todo set correct working directory, and show output
# we have installed in 'user'/ ('user'/demo-build/..), and cmake created 'user'/nana-test/
# todo: separate resources from sources (a directory for images)
- ls -lh
# we were still in: 'user'/demo-build/
- cd ../nana-test/bin
- ls -lh
- ./a_group_impl
- ./animate-bmp
- ./audio_player
# - ./audio_player_simple # just play music too long
- ./background-effects
- ./calculator # COOL !!! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L924
- ./categ
- ./clicked
- ./decore
- ./dock
- ./drag-button
- ./draw
- ./file_explorer
- ./example.button
- ./example_combox # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1044
- ./example_listbox
- ./example_menu # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1022
- ./filebox-txt # https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1068
- ./folder_tree_nana # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1193
- ./folder_tree_std # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1200
- ./framework_design_1
- ./framework_design_2
- ./framework_design_3
- ./group
- ./HelloWord
- ./helloword_quit # ok
- ./inputbox # ok
- ./label_listener
- ./lambda_event.Cpp11
- ./listbox_inline_widget
- ./listbox_Resolver
- ./loader_1
- ./loader_2 # ok
- ./main
- ./mbox
- ./menu_debug
- ./menu_popuper
- ./modal_form # ok
- ./MontiHall # ok
- ./place_login
- ./helloworld_demo # ok
- ./notepad # ok !!
- ./widget_show2 # ok !!
- ./widget_show # ok !!
- ./png
- ./screen # ok
- ./stretch_image
- ./textbox_line_number
- ./thread-pool # ok
- ./threading # ok
- ./various_events
- ./window-dragger # ok
- ./windows-subclassing
214 changes: 114 additions & 100 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,103 +1,117 @@
# CMake configuration for Nana Demos
# Author: Carlos Nihelton(https://github.com/CarlosNihelton)
# [email protected]
# CMake configuration for Nana Demos and examples
# Author: Ariel Vina-Rodriguez (qPCR4vir)
# Prerequisites:
# The source code of nana is in directory: ../nana
# That is: your base directory have two directories: nana (with source code of nana),
# and nana-demo. This cmake run in the nana-demo directory
# deprecated:
# Statically compiled nana.lib and the include directory of nana are in directory: ../nana_lib
# That is: your base directory have two directories: nana_lib (with the nana.lib and the include/nana directory),
# and nana-demo. This cmake run in the nana-demo directory
# |
# + nana-demo (directory with this file and all the others from nana-demo)
# + nana_lib
# |
# + lib (directory with the staticaly complied nana library)
# + include (directory with all the nana include files)

cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
project(nana_demo VERSION 1.6.2
DESCRIPTION "nana C++ GUI library demos and tests"
HOMEPAGE_URL http://nanapro.org
LANGUAGES CXX )

enable_testing()
add_subdirectory(../nana ../cmake-nana-build-${CMAKE_BUILD_TYPE} )

option(NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS "" OFF)
option(NANA_CMAKE_BUILD_FreeMe "Build FreeMe (currently broken)?" OFF)

function(set_nana_test dir files)
foreach ( test ${${files}})
add_executable(${test} "${${dir}}/${test}.cpp")
target_link_libraries(${test} PUBLIC nana)
if(NANA_CMAKE_AUTOMATIC_GUI_TESTING)
#add_custom_command( TARGET ${test} POST_BUILD COMMAND ${test} )
#add_custom_target(do_always_${test} ALL COMMAND ${test})
add_test(NAME ${test} COMMAND ${test} WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/Examples)
message("... added test: ${test}" )
endif(NANA_CMAKE_AUTOMATIC_GUI_TESTING)
install(TARGETS ${test} RUNTIME DESTINATION "nana-test/bin")
message("... to build: ${${dir}}/${test}.cpp" )
endforeach( test ${${files}})
endfunction(set_nana_test)


set (demos_dir ${CMAKE_CURRENT_LIST_DIR})
set (demos calculator file_explorer helloworld_demo notepad widget_show widget_show2 )
# Pending:


set (examples_dir ${CMAKE_CURRENT_LIST_DIR}/Examples)
set (examples
a_group_impl animate-bmp audio_player audio_player_simple
background-effects categ clicked windows-subclassing
dock drag-button draw example.button
example_combox example_listbox example_menu lambda_event.Cpp11
filebox-txt folder_tree_nana folder_tree_std
framework_design_1 framework_design_2 framework_design_3 label_listener
group HelloWord helloword_quit listbox_inline_widget
inputbox listbox_Resolver loader_1 loader_2
main mbox menu_debug menu_popuper modal_form
MontiHall place_login png textbox_line_number
stretch_image threading thread-pool various_events
window-dragger screen decore
)
# Pending:

if (NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS)
list(APPEND demos )
if (NANA_CMAKE_BUILD_FreeMe)
add_definitions(-DBUILD_FreeMe)
list(APPEND demos FreeMe)
endif (NANA_CMAKE_BUILD_FreeMe)
endif (NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS)


set_nana_test(demos_dir demos)
set_nana_test(examples_dir examples)
# copy this dir to reuse e resources (images)
install(DIRECTORY ${examples_dir} DESTINATION "nana-test")

if (NANA_CMAKE_VERBOSE_PREPROCESSOR)
# Just for information:
include(CMakePrintHelpers)

cmake_print_properties(TARGETS file_explorer PROPERTIES
COMPILE_DEFINITIONS COMPILE_OPTIONS COMPILE_FLAGS LINK_LIBRARIES
INCLUDE_DIRECTORIES INSTALL_NAME_DIR LINK_FLAGS VERSION
ARCHIVE_OUTPUT_DIRECTORY ARCHIVE_OUTPUT_NAME INSTALL_RPATH
)
cmake_print_variables(CONFIG)

message ( "CMAKE_CXX_COMPILER_ID = " ${CMAKE_CXX_COMPILER_ID})
message ( "COMPILER_IS_CLANG = " ${COMPILER_IS_CLANG})
message ( "CMAKE_COMPILER_IS_GNUCXX= " ${CMAKE_COMPILER_IS_GNUCXX})
message ( "CMAKE_CXX_COMPILER_VERSION= " ${CMAKE_CXX_COMPILER_VERSION})
message ( "CMAKE_CXX_FLAGS = " ${CMAKE_CXX_FLAGS})
message ( "CMAKE_EXE_LINKER_FLAGS = " ${CMAKE_EXE_LINKER_FLAGS})
message ( "CMAKE_STATIC_LINKER_FLAGS= " ${CMAKE_STATIC_LINKER_FLAGS})
message ( "NANA_LINKS = " ${NANA_LINKS})
message ( "DESTDIR = " ${DESTDIR})
message ( "CMAKE_INSTALL_PREFIX = " ${CMAKE_INSTALL_PREFIX})
message ( "NANA_CMAKE_ENABLE_AUDIO = " ${NANA_CMAKE_ENABLE_AUDIO})
message ( "CMAKE_CURRENT_SOURCE_DIR= " ${CMAKE_CURRENT_SOURCE_DIR})
message ( "CMAKE_CURRENT_DIR = " ${CMAKE_CURRENT_DIR})
message ( "CMAKE_CURRENT_BINARY_DIR= " ${CMAKE_CURRENT_BINARY_DIR})
message ( "CMAKE_DEBUG_POSTFIX = " ${CMAKE_DEBUG_POSTFIX})

message ( "NANA_CMAKE_FIND_BOOST_FILESYSTEM = " ${NANA_CMAKE_FIND_BOOST_FILESYSTEM})
message ( "NANA_CMAKE_BOOST_FILESYSTEM_FORCE = " ${NANA_CMAKE_BOOST_FILESYSTEM_FORCE})
message ( "NANA_CMAKE_BOOST_FILESYSTEM_INCLUDE_ROOT = " ${NANA_CMAKE_BOOST_FILESYSTEM_INCLUDE_ROOT})
message ( "NANA_CMAKE_BOOST_FILESYSTEM_LIB = " ${NANA_CMAKE_BOOST_FILESYSTEM_LIB})
message ( "NANA_CMAKE_AUTOMATIC_GUI_TESTING = " ${NANA_CMAKE_AUTOMATIC_GUI_TESTING})
message ( "NANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING = " ${NANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING})

cmake_minimum_required(VERSION 3.1)

project(Nana_Demos)

# set compile flags
# if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
# endif(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")


#Global MSVC definitions
if(WIN32)
if(MSVC)
option(WIN32_USE_MP "Set to ON to build nana with the /MP option (Visual Studio 2005 and above)." ON)
# ??
if(WIN32_USE_MP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()

endif(MSVC)
endif(WIN32)


#Unicode
option(USE_UNICODE "Use Unicode Character Set")
if(USE_UNICODE)
add_definitions(-DNANA_UNICODE)
endif()

if(APPLE)
add_definitions(-DAPPLE)
include_directories(/opt/X11/include/)
elseif(UNIX)
add_definitions(-Dlinux)
endif()



if(UNIX)
find_package(Freetype)
if (FREETYPE_FOUND)
include_directories( ${FREETYPE_INCLUDE_DIRS})
endif()
endif()

if(WIN32)
add_definitions(-DWIN32)
if(MINGW)
add_definitions(-DMINGW)
endif()
endif()

#Find PNG
option(ENABLE_PNG "Enable the use of PNG")
option(LIBPNG_FROM_OS "Use libpng from operating system.")
if(ENABLE_PNG)
add_definitions(-DNANA_ENABLE_PNG)
if(LIBPNG_FROM_OS)
find_package(PNG)
if (PNG_FOUND)
include_directories( ${PNG_INCLUDE_DIRS})
add_definitions(-DUSE_LIBPNG_FROM_OS)
endif()
endif()
endif()

#Find JPEG
option(ENABLE_JPEG "Enable the use of JPEG")
option(LIBJPEG_FROM_OS "Use libjpeg from operating system.")
if(ENABLE_JPEG)
add_definitions(-DNANA_ENABLE_JPEG)
if(LIBJPEG_FROM_OS)
find_package(JPEG)
if (JPEG_FOUND)
include_directories( ${JPEG_INCLUDE_DIRS})
add_definitions(-DUSE_LIBJPEG_FROM_OS)
endif()
endif()
endif()

#For my case I have separate dirs for Nana and Demos.
include_directories(${CMAKE_SOURCE_DIR}/../nana/include)
link_directories(${CMAKE_SOURCE_DIR}/../nana/ShadowBuild)

add_executable(hello_world ${CMAKE_SOURCE_DIR}/Examples/HelloWord.cpp)
set_property( TARGET hello_world PROPERTY CXX_STANDARD 14 )
target_link_libraries(hello_world nana X11 pthread rt Xft)

add_executable(file_explorer ${CMAKE_SOURCE_DIR}/file_explorer.cpp)
set_property( TARGET file_explorer PROPERTY CXX_STANDARD 14 )
target_link_libraries(file_explorer nana X11 pthread rt Xft)

add_executable(widget_show ${CMAKE_SOURCE_DIR}/widget_show.cpp)
set_property( TARGET widget_show PROPERTY CXX_STANDARD 14 )
target_link_libraries(widget_show nana X11 pthread rt Xft)

add_executable(widget_show2 ${CMAKE_SOURCE_DIR}/widget_show2.cpp)
set_property( TARGET widget_show2 PROPERTY CXX_STANDARD 14 )
target_link_libraries(widget_show2 nana X11 pthread rt Xft)
Loading