Commit graph

136 commits

Author SHA1 Message Date
turleypol
3b9051271e
Option to disable Reuse of clib pch (#234)
* by default on windows the clib pch shouldnt be reused and instead rebuild
* activate reuse_pch for windows ci build
* changed pch header from public to private
2020-08-19 14:55:09 +02:00
Fernando Rozenblit
815bb6f856
Cmake and zlib cleanup (#219)
* Added explicit path to the lib/ folder.

* Added use_zlib() function to the cmake files. Changed the remaining cmake files to use POL_EXT_LIB_DIR.

* Removed relative path to zlib. It seems we were always using our zlib header (even when linking to the system zlib on linux!).
2020-08-14 22:16:02 +02:00
Fernando Rozenblit
4b96f9b663
Add pol-core to include path (#217)
* Add pol-core to include path

* Change a few example files to use an include path relative to pol-core or the project
2020-08-14 20:40:14 +02:00
turleypol
ad3644de23
Antlr and Curl build step fix (#213)
* force antlr to always build in release node also for multiconfigs
set the correct c++ runtime flag for clang on windows
fixed lib path for antlr
in CI also test msbuild and different modes then release

* cache antlr in nopch and force recompile in pch build

* force release mode also for curl
2020-08-13 15:16:36 +02:00
turleypol
dee75b0a12
Scripttest inside pol (#210)
* python script to generate cpp file with BareDistro content
poltool cmd to generate the files

* updated baredistro, fixed compilation

* fix warning, ignore autogenerated file in stylechecker

* test for pol?
uoconvert got a new argument outdir for the cfg file output
single thread decay has now a upper limit of sleeptime
fixed that the exit_code can only get worse

basic files for core testing in testsuite
added a not really nice way to set it up via ctest
integrated in CI with upload of log output

* testenv

* update poltool filegeneration to c++17

* first real tests

* first npc test

* equip a backpack and test a bit aos props

* fixed early returns
2020-08-12 23:15:40 +02:00
turleypol
62fa91ec8e
Antlr external project (#204)
Build antlr as external project inside of lib/antlr.
Cache in Ci the antlr folder to speed up compilation times.

* replace ERROR with ANTLR_ERROR, fix clang build
* added missing define needed to link on windows
* different lib name with clang on windows
2020-08-10 14:53:29 -07:00
turleypol
35e1712f3c
C++17 (#197)
* move to c++17

* update readme with new compiler requirements

* use c++17 filesystem in testfiles creation

* use gcc9

* Vagrant support for c++17: use gcc9 and llvm 7 (#199)

Co-authored-by: Eric Swanson <eric.the.unicorn@gmail.com>
2020-08-10 10:04:03 +02:00
turleypol
2484998469
poltool is now able to generate clientdata (#191)
added simple test for uoconvert
fixed poltool mapdump argument handling
2020-08-08 09:34:40 +02:00
Fernando Rozenblit
af19074ed4
Update to cpp14 (#188)
* use c++14 on linux, visual studio still undefined which means highest
available

* removed make_unique.h due to c++14 no more needed

* stumbled across pre c++14 code

* Removed use of boost::make_unique<> (updated to C++14)

Co-authored-by: turleypol <turley@polserver.com>
2020-08-05 20:28:07 +02:00
Eric Swanson
e42892fe7b Compiler v1 error messages in *.err1 files 2020-08-01 17:20:20 -07:00
Eric Swanson
4834aee9d9 escript_grammar.cmake from Turley
Incorporate cmake/escript_grammar.cmake

Adjust generated EscriptParser.cpp: Need namespace for TokenStream in constructor
2020-07-26 23:42:33 -07:00
Eric Swanson
26aa8a01fa Incorporate ANTLR into the cmake build.
Adjust ANTLR runtime source code: Replace ERROR with ANTLR_ERROR because it clashes with a longstanding windows header #define.
2020-07-17 20:52:40 -07:00
Kevin Eady
12d6186d10
Script option enhancements (#118)
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES

* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT

* wip beginning work on templatization

* Use PolModule in pol-specific modules

* wip, creating PolModule with getXYZParam

* wip 1, moving getXYZ to UOExecutor

* compilable with PolObjectImp / PolApplicObj

* add type guard

* wip, change signatures

change signatures of script_method, script_method_id, and
custom_script_method

* compilable (windows)

* linux fixes

* namespace fixes

* remove uoexhelp

* formatting

* compilable

- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h

* finish uoexec() helper

* some cleanup
2020-02-08 09:21:35 +01:00
turleypol
6ef50f50dd Compilation/execution on ARM is now possible 2020-01-06 22:19:51 +01:00
turleypol
bb68221bee Automatically create a release with zips of all platforms per commit onto head 2019-12-29 23:19:18 +01:00
turleypol
7db59e0ab8 Support for github actions
with artefacts for all platforms
fixed VS2019 build for format lib
2019-12-26 21:43:41 +01:00
turleypol
c9ff484cf9 building without mysql on linux should work again 2019-12-12 22:32:17 +01:00
turleypol
7e8f92bc85 rewrote module function generation, maybe this works 2019-11-10 22:04:08 +01:00
turleypol
e249e62434 fixed clang warning
no need to write tmp file for em headers, the dependency is file based
2019-11-10 13:20:18 +01:00
Kevin Eady
a12de6a3c4 change modname to const char* const, rename script 2019-10-19 10:23:45 +02:00
Kevin Eady
1ac115176b use function to add module table dependency 2019-10-19 10:11:44 +02:00
Kevin Eady
ca850a0c76 project refactoring 2019-10-18 21:32:30 +02:00
Kevin Eady
5c0fb7c4ea First support for .em-parsed module function tbls
- Create module parser custom target
- Include generated tables in .cpp sources
- Standardize module function names based off .em names
2019-10-17 22:37:26 +02:00
Kevin Eady
b55e852a5b wip 1 2019-10-17 19:08:49 +02:00
turleypol
a714b31895 CMake 3.16 has included pch support, use this instead of cotire. 2019-10-12 22:52:42 +02:00
GIB
0729ed7129
Fix to items randomly loading with AOS props due to incorrect initalization of props on load of server.
Hotfix/dynaprop fix (#93)
2019-07-12 15:14:35 +08:00
turleypol
c0c1561236 use generator unspecific clean cmd in build_tools.sh
always generate compile_commands.json
force color diagnostic (to work with ninja)
2019-04-14 22:05:01 +02:00
turleypol
b2a52d9c96 Curl building uses now the same compiler as pol 2019-04-12 16:07:24 +02:00
turleypol
7ac01acd8d fixed target_link_directories system header declaration 2019-03-24 10:56:08 +01:00
turleypol
251cf45165 new build target "clang_format" runs clang-format on current modified
or new files in pol-core dir.
2019-03-18 20:18:27 +01:00
turleypol
60b275d682 Updated cotire, updated pch 2018-12-30 18:49:57 +01:00
turleypol
ea0c533364 fixed leak in compiler and xml filemod
ecompile/runecl no longer try to log to pol logs
activated xml unittest
print stderr on testfailure
2018-12-23 13:55:47 +01:00
turleypol
dafb1d7b9e updated flyweight memory report (used for memory saving of strings)
enable via ENABLE_FLYWEIGHT_REPORT cmake option
2018-12-02 19:39:57 +01:00
turleypol
3e656ed5f8 fixed all gcc/clang warnings which where disabled 2018-10-31 15:40:25 +01:00
turleypol
be7703ee40 next... 2018-10-31 11:52:29 +01:00
turleypol
8de143f6af EScript Tests are now implemented completly in cmake
use ctest or target "test"
2018-10-30 21:23:40 +01:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02:00
turleypol
e8c411a0ce Updated gitignore, moved boost target to the same location as curl. 2018-06-24 16:48:32 +02:00
turleypol
9ce59f0c53 silence new zlib warning 2018-06-24 11:56:05 +02:00
turleypol
fbc9a78cda updated Boost to 1.67 2018-06-24 11:14:51 +02:00
turleypol
59cf194c19 renamed all CMake helper files to .cmake 2018-06-23 23:02:37 +02:00
turleypol
13ffcdb9e6 silenced curl build again 2018-06-23 22:43:11 +02:00
turleypol
e9f8e2719b disabled ldap on curl build 2018-06-23 21:40:18 +02:00
turleypol
14b07ccbda trying to debug travis... 2018-06-23 20:51:50 +02:00
turleypol
2215b0cd3c fiyed curl cmake variable order 2018-06-23 20:29:05 +02:00
turleypol
6a6b0d51a4 fixed linux build
fixed stylecheck
2018-06-23 20:10:37 +02:00
turleypol
3aa557876d Missing files... 2018-06-23 19:19:58 +02:00
turleypol
7f9219afbd Curl should now build correctly on windows
Removed more visual studio prj files and removed some deprecated files
2018-06-23 19:19:27 +02:00
turleypol
c71c4965c8 git revision fetch is now part of the build process instead of
configure step
2018-06-18 10:27:01 +02:00
turleypol
9b97b1e4ee fixed version string definition 2018-06-17 19:03:49 +02:00