summaryrefslogtreecommitdiffstats
path: root/cmake
AgeCommit message (Collapse)AuthorFilesLines
2018-10-15OS detection to fallback instead of additionRomain Forlot1-1/+5
Instead of include a default cmake file in addition of the others, use it as fallback if any other cmake file doesn't match Change-Id: Ib46e0e64a5f485dcad4e41f092936484da83b7f4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Enhances OS detection with Yocto and SDKRomain Forlot1-18/+22
Change-Id: I27f70c3ef9f16d918353e00c0535351bd738df82 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Format: Remove spaces at EOLRomain Forlot1-1/+1
Change-Id: If16b9cd45e5955b8ca8049fee1ea97a9d43d5cb7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Better OS detection.Romain Forlot1-5/+6
Only take ID_LIKE field if it exists else ID. Doing some stripping also to get a cleaner output variable Change-Id: If5c44bf21c3435bd4739cfd34190a81d28dd10d3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Add macros to make a 2nd pass on required moduleRomain Forlot2-1/+9
Useful when adding module dependant of distro as they do not named their packages the same way... Change-Id: I0422ce4cdad48f9e815d24510376ad11941d5e3d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Better OS detection and inclusion per distributionRomain Forlot2-6/+15
Change-Id: I6f479353df990eb2ff9030b7427d48bb72f0416f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Don't output compiled lua file when checked.Romain Forlot1-1/+1
Change-Id: I062bbb8c1342f189406ac1295baa5fb6e7c5eb1a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Install automatically managed for populate targetsRomain Forlot1-88/+99
All populated targets will install in CMAKE_INSTALL_PREFIX/PROJECT_NAME Change-Id: I37df0c6dfde34a04e515e70b06f56929bd76c51a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: BINDINGV2 target not populatedRomain Forlot1-7/+9
Miss dependencies... Change-Id: Ief8a5c764a6a36c042eebbd66b83f12e2f08b36a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Better handling icon&config.xml to build widgetRomain Forlot2-11/+14
Default value set Change-Id: Ie1370ff9e89bb80044fc847b4cf37ba19314ecc1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Cleaning, formatRomain Forlot1-5/+5
Change-Id: I0328f500867636bf13289bc2a9d7f8d5a9f7e060 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Duplicate variable meant to set installation dirRomain Forlot1-8/+0
Remove BINDING_INSTALL_PREFIX variable Change-Id: Ia5be7f18a66b3667f03edb265caccc515e0490b2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Make CMake minimal version to at least v3.5Romain Forlot1-3/+81
Backport list(filter cmake subcommand as macro Change-Id: I7736e18ee2618e1977dd968636be84afc31bcc88 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Remove JSON checker not suitable for schema checkRomain Forlot1-2/+3
Change-Id: Iba8dcd35290ab43ffc3aeaeb91cf40b6af1268b8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Added per project custom template dirRomain Forlot1-0/+1
Change-Id: I5175b45a0d493724492157af2d32f4e51a04665f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: missing dev pkg files error. Now well checkedRomain Forlot1-4/+7
Change-Id: I2c429322990f5a4f0ba192c49502026f4b37dd1d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Personal files inclusion now by projects.Romain Forlot2-13/+39
Depending on file name you can include some files from your home or system by project or globally Change-Id: I1fef678073977633576a21893065e681b286646c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix new arboRomain Forlot2-5/+5
Wrong path to the scripts Change-Id: I0cc0cf9aaa374b5e130008c65f590cee458a7f39 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Reorganization between variables/build optionsRomain Forlot4-38/+39
Move compilation/link option to build options and all custom variables stuff in variable file. Make build options as first file to be included then all custom stuff. Change-Id: I530268574745edcc414e29cac59eb542954d73cc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Avoid wrong OPENAPI_DEF variable definitionRomain Forlot1-0/+6
Change-Id: I6b38cc6af5a3cb5b86b445149345cd65082ccc8b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Better handling of iconsRomain Forlot1-5/+15
Use custom icon if needed or default one if none Change-Id: Ieaa096e3bf40f202e5204dbb48a977edc074d24b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Ease standard target DATA and HTDOCS creationRomain Forlot2-0/+26
This will create a custom target which make sure input files are correct (linting or compiling them) then copying them into the target build dir Change-Id: I1d346d4611a6d97682a00d2038de41a643b28928 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Extending pluggable arch for templatesRomain Forlot5-225/+34
Idea is to be able to use custom templates from home dir and system dir Change-Id: I74b48458f3dcc26b49f8144e042c213691028167 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Be able to choose openAPI definition file name.Romain Forlot1-6/+17
Use a variable OPENAPI_DEF to define the file name else use the default convention ${OUTPUT_NAME}-apidef. Update the docs in consequence. Change-Id: Ibc29d6079d185e47a80dbfe4df5dedd28f7f63c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: make install double files in build dir.Romain Forlot1-2/+2
Default install prefix to /usr/local then. Change-Id: I6c53e3055a3a9f7d44d24480695014b1c9a435ae Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: wrong link libraries dependencies var nameRomain Forlot1-2/+2
Change-Id: Idbdb781c0cb7ab9a6df4b821868587bfaa8e3c2f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Change compilation flags setup.Romain Forlot2-25/+47
Use CMAKE cache variables other than defaults ones to don't be in conflict and iterates over them with add_compile_options command Change-Id: I5e62ab1a340aca15eafeb687998c06e13a571357 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Generate .h from OpenAPI json description fileRomain Forlot1-1/+14
Use a new label BINDINGV2 that create a new target ${TARGET}_GENSKEL before build ${TARGET}. Change-Id: I358e65f0340ac051217cb19a4554f6165af061df Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15No optimization in DEBUG build configurationRomain Forlot1-1/+0
Optimization complicate debugging. Change-Id: Ib000c36fd599b544ef96be9de35527baecf022e3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Format and Make CMake dependencies cleaner.Romain Forlot1-10/+16
Use CMake recommended way to specifies target dependencies. As well add dependencies on needed files or directories in custom_command. Change-Id: I617e54a4c312336ea1cf306409456fbc55be7fa5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fixed target-populate dependencies and update native-remote debugFulup Ar Foll2-2/+8
Change-Id: Ia041caa86dd57af48ae6ee53f26fb0be86f95e88 Signed-off-by: Fulup Ar Foll <fulup@iot.bzh>
2018-10-15Fix logic bug in addition of -DKERNEL_MINIMAL_VERSIONJan-Simon Möller1-1/+2
-DKERNEL_MINIMAL_VERSION_OK was always set. Move it into else case. Change-Id: Icc7e0982584bce6134611a7724e9d1ef36602360 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2018-10-15CommentRomain Forlot1-6/+6
Change-Id: I5a78f103c29c3535d332172ee0b0547de79cc193 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-152 Kernel checks available (warning or mandatory)Romain Forlot3-20/+39
Use 2 differents checks, one specify a mandatory kernel version and the other will output a warning and position a preprocessing variable that can be used in the code to exclude portions of code that use kernel features not available under a certain version. Change-Id: Ifc6848df1a1a448094f5312ea23e6d4837e8ef14 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Change compile flag and clearer to readRomain Forlot1-8/+9
Use -O0 with DEBUG instead of -0g Change-Id: I100e2188b34f3506d400379808ce875a4817be8d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Project cmake file have precedence on home & sysRomain Forlot1-1/+1
Change-Id: Ied2c6e3c7f378b27a84229999b84dfc649a4e657 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Add possibility to customize option at link.Romain Forlot1-0/+4
Credit to Ronan Le Martret. Change-Id: I5ea24a275df6726f87ce5e87abbb2cfc6d029f28 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: bad afb-daemon flag, disable auto answer 'no'Romain Forlot1-1/+3
Change-Id: I3ee63512433c869fdd809ee1b6571205cd07a4e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15-pg flags belongs to profiling more than debugRomain Forlot1-1/+1
Change-Id: Iab550cc5653c7ef1094a8960aca9ca64f1aee1a4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: shared library files not found by gdbRomain Forlot3-3/+15
Old behavior assume a PATH that do not exists using XDS-server this patch intends to make a list of bindings using a regex, as GDB interprets the argument. Change-Id: I67caa1853be67813e8de02cdbb34f107f1e1676c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15FormatRomain Forlot1-2/+2
Change-Id: Ib31c28da19c766c43fcbf9002d0aa1e9ecb370ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Use recommended way to specify target dependenciesRomain Forlot1-11/+7
Change-Id: I6a8e5d435a0540522de555f521d24aa4de21050d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix invalid widget dir in config sampleSebastien Douheret1-1/+1
Change-Id: I6f26d49137bfc567eaae17eb06ad77ce645ee95d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-15Fix: also avoid cleaning generated packaging filesRomain Forlot1-36/+11
Change-Id: I312e0743e8faf03ecfc5b43c77a9edaf9b40d937 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: cleaning of autobuild script using make cleanRomain Forlot1-6/+10
Fake files output to avoid cleaning those files once generated. Doing that target always trigger and regenerate files. Change-Id: I514318e2f08b1db2bf4e75bd0f0bf15c09329907 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: cleaning generated additionals filesRomain Forlot1-3/+2
Change-Id: I979b699e6ce090b354d6271c549111c2bd44cd2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Add configured file to files to clean up with makeRomain Forlot1-0/+1
Change-Id: Ibef0a4628bf3fe0b830f19fc8aa2f3e5d4b1ff19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: wrong extension of configured filesRomain Forlot1-0/+1
Remove the ".in" template extension from filenames which have to be correctly named. Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Add some reminderRomain Forlot1-0/+1
Change-Id: I218b746a622cc0705be631292fc9e0c6154538eb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-15Fix: Yocto cross compile flag same the last commitRomain Forlot1-9/+14
Change-Id: Id39653e23fddedd3f48a64d1d9badd6c7a1ef894 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>