Commit Graph

412 Commits

Author SHA1 Message Date
Tommaso Pecorella
8ac0116193 core: doxygen fixes 2022-01-30 12:06:53 -06:00
Gabriel Ferreira
bbe67f5fc2 build: check if visualizer is in the enabled modules list 2022-01-28 15:37:27 -03:00
Gabriel Ferreira
41aacec626 build: CMake refactoring
Includes:
- refactor build_lib and build_lib_example macros
    - unify src and contrib macros
    - replace macro with function not to leak definitions
    - parse list of arguments
- different cmake-format file for modules to list one item per line
2022-01-28 10:20:18 -03:00
Tommaso Pecorella
d470fb77d4 ci: fix fedora jobs 2022-01-27 17:36:45 -06:00
Gabriel Ferreira
0888aa9f4d CI: use ns3 for the doxygen job 2022-01-27 18:27:29 -03:00
Gabriel Ferreira
113c3744fc build: CMake and ns3 fixes and improvements
Includes:
- fix python warnings and wrap pkgconfig_interface_include_directories in quotes to treat it as a string
- prevent failure when Python is not found
- refactor python bindings checks and error messages
- export 3rd-party include directories and linked libraries
    - Adding a NS3_REEXPORT_THIRD_PARTY_LIBRARIES option to always export include directories and libraries used by a module, making it automatically available to 3rd-party modules
    - Making NS3_REEXPORT_THIRD_PARTY_LIBRARIES option enabled by default
- replace colliding shortcuts with list of non-ambiguous shortcuts
- remove unnecessary code blocks from click
- warn users that doxygen target requires examples and tests
    - These are used to generate introspected documentation and guarantee proper dependency checking and build order
2022-01-27 17:28:38 -03:00
Gabriel Ferreira
9342082c53 bindings, build: fix bindings and visualizer build
Includes:
- scan python scripts
- run python scripts from ns3
- replace visualizer file copy with configure_file to prevent cmake refreshes
- replace ns__init__.py file copy with configure_file to prevent cmake refreshes
- fix bindings scanning with cmake
- pass include directories to modulegen for castxml consumption
- add missing parameters of Recv in python-unit-tests.py
- change apiscan targets from apiscan-module to libmodule-apiscan
- change bindings targets from module-bingings to libmodule-bindings
- scanning and bindings build tests
- scan scratch python scripts
- replace FindPython3 with FindPython to be compatible with CMake 3.10
- do not export private visual-simulator-impl.h
- do not export udp-socket-impl.h
- use .so suffix for bindings on Mac instead of .dylib
2022-01-26 01:53:28 -03:00
Tommaso Pecorella
778a9fda8a CI: enable mpi on Fedora 2022-01-23 16:41:18 -06:00
Gabriel Ferreira
2d1efe3f76 CI: enable mpi tests and indicate ns3 is running on a CI environment 2022-01-23 17:34:58 -03:00
Gabriel Ferreira
bbe2128abe build: more ns3 and CMake fixes
Includes:
- inform ns3 user cmake was not found, or an unsupported version was found
- replace open-mpi environment variables with command-line arguments
- mark more variables as advanced
- add -v and --verbose option to run and only output the programs output by default
- fix scratch subdir prefixes and add tests
- prevent cmake crash when scratch sources do not have a main function
- disable MPI module by default
- wrap cmakelists_content in quotes to prevent failure of filter_libraries
- install pkgconfig files and add tests
- pkg-config generation (still missing installation)
- forward PYTHONPATH to modulegen
- fix dependency search for brite, click and openflow
2022-01-23 17:30:08 -03:00
Gabriel Ferreira
33f2ee841b doc: update ns3 API 2022-01-19 16:25:03 -03:00
Gabriel Ferreira
330ffb75b6 CI: add flags required by recent openmpi to run on the CI 2022-01-19 16:25:03 -03:00
Gabriel Ferreira
70d11fe983 build: ns3 and CMake fixes
- fix scratch shortcut transformation to build target and binary
- scan scratch files for a main function to use them as the target name
- fix CMake generator parsing
- update the -- separator message
- use -- separator to forward CMake flags from ns3
- add --vis option to ns3
- embedded version fixes
    Fix NS3_VERSION_PATCH and NS3_VERSION_RELEASE_CANDIDATE default values.
    Add check-version target to CMake.
    Add --enable-build-version to ns3.
    Add --check-profile and --check-version options to ns3.
- process each scratch subdirectory as a single target
- forward ns3 arguments after -- separator to the program to run
- fix escape sequence in command-template help string
- handle modules with very long names
2022-01-19 16:25:03 -03:00
Tom Henderson
4ee323f8fd build: (merges !837) Remove libgcrypt detection 2022-01-13 17:41:39 -08:00
Gabriel Ferreira
f81977e170 CI: Install ssh in gcc jobs 2022-01-09 10:48:33 -03:00
Gabriel Ferreira
53260b5d27 CI: Specify c++ compiler and install ssh for CI jobs with MPI 2022-01-09 04:14:41 -03:00
Gabriel Ferreira
ff3b511384 build: Bugfixes and refactoring of ns3 and CMake
Including:
- add missing command for introspected doxygen
- run get_version.sh before running doxygen
- use find_package(Doxygen) to get the doxygen executable
- silence python and sqlite find_package warnings
- return cmake returncode if configuration fails
- require GTK3 3.22
- link all libraries to print-introspected-doxygen
- replace shell with use_shell for variable name
- revert wrong changes to propagation of return codes and add test
- disable pch when ccache is found
- make --enable-sudo a post-build step and a runtime option
- add docs subparser
- add enable-sudo option
- refactor positional argument values
- fix --check option and add shell option
- replace --no-task-lines with --quiet
- replace --nowaf with --no-build
- replace --run --run-no-build with run (--no-build)
- replace ns3 documentation related arguments with targets
- document test-ns3.py
- export include directories used by ns3 libraries
- refactor CMake documentation dependency checking and behavior
- add --allow-run-as-root for running MPI examples on the CI
2022-01-09 02:48:53 -03:00
Gabriel Ferreira
7a95fb87be test: Replace nowaf option with no-build option 2022-01-09 00:59:19 -03:00
Tommaso Pecorella
247a597f43 doxygen: fix warnings in various modules 2022-01-07 12:13:17 -06:00
Tommaso Pecorella
64f9c1c70d CI: upodate fedora and ubuntu tests 2022-01-06 16:46:50 -06:00
Tommaso Pecorella
6b50829a4b CI: revert the doxygen CI to waf 2022-01-06 13:37:06 -06:00
Tommaso Pecorella
3d23f9ed09 CI: switch to cmake 2022-01-05 12:10:58 -06:00
Tommaso Pecorella
a8fc1b6235 doxygen: fix warnings in various modules 2022-01-05 00:22:31 -06:00
Peter Barnes
7f3d883f75 core: fix doxy warnings 2021-12-21 17:06:57 +00:00
Gabriel Ferreira
6d665d5901 build: fix ns3 path resolution when running waf executables
When waf output directory is different from the default
2021-12-21 13:21:31 -03:00
Gabriel Ferreira
715232ea96 build: fix dependency checks for the test module
And formatting fixes
2021-12-19 11:43:47 -03:00
Tommaso Pecorella
da7e53148b CI: fix Yaml for clang tests 2021-12-18 01:42:46 +00:00
Tommaso Pecorella
9b1b8feb81 CI: fix Yaml for clang tests 2021-12-18 01:32:44 +00:00
Tommaso Pecorella
98e3168d7e CI: fix Yaml for clang tests 2021-12-18 01:26:40 +00:00
Tom Henderson
f5bd038b86 build: Update minimum compiler versions to g++-8, clang++-6, Apple Clang 11 2021-12-17 17:18:58 -08:00
Tom Henderson
fa64e1e008 ci: Remove unsupported Fedora 31, 32 2021-12-17 15:55:50 -08:00
Gabriel Ferreira
9d9f765ba6 build: additional CMake and ns3 bugfixes 2021-12-16 02:29:59 +00:00
Tommaso Pecorella
73fd4b87a4 build: fix Ubuntu 18.04 CI scripts 2021-12-14 00:28:16 +01:00
Tommaso Pecorella
532dadb1c3 build: update CI scripts to use gcc-8 2021-12-13 18:01:35 +01:00
Gabriel Ferreira
eda1c6af51 build: Stop manually refreshing the cmake cache to speed up build 2021-12-11 12:04:15 -03:00
Gabriel Ferreira
f6ef415392 build: CMake bugfixes
Fixes include:
- Handling of relative paths used as output directories
- Accepting comma separated lists of modules to enable/disable
- Echoing all CMake commands at the end of the execution of ns3 script
- More informative optional features summary output
- Replace absolute paths with relative paths in the printed CMake output for less verbose output
- Set debug build type on the CMake side to ensure ccmake doesn't crash
- Prefix INT64X64 with NS3 to indicate user switch
- Compiler version check
- Removal of verbose option
- Suppress empty enabled/disabled module tables

Features include:
- Test for installation/uninstallation of ns-3 as a CMake package
- Test importing ns-3 as a CMake package and use in a 3rd-party project
- Test to check VERSION usage
- ns3 option to enable/disable sanitizers
- Associate headers to libraries targets
2021-12-10 02:13:43 +00:00
Stefano Avallone
6ec6fc2eb6 core: Add an attribute value storing a std::tuple 2021-12-06 10:49:40 +01:00
Gabriel Ferreira
a893eba7e3 build: Fix CMake and ns3 script bugs, add a test suite and fix formatting 2021-12-05 21:53:49 +00:00
Gabriel Ferreira
3c604d5b2e Update docs with CMake and ns3 wrapper 2021-12-01 12:29:56 -08:00
Gabriel Ferreira
314c02b234 CI job using ns3 wrapper script 2021-12-01 12:29:55 -08:00
Gabriel Ferreira
9c876c7f5a CMake buildsystem 2021-12-01 12:29:55 -08:00
Eduardo Almeida
b73323471b test: Remove duplicate config test case 2021-11-18 11:57:00 -08:00
Gabriel Arrobo
d53ea68bc2 utils: Improve Python style concerning unused variables and return values 2021-08-21 11:00:24 -07:00
Tommaso Pecorella
838dfe26ec ci: increase the private runners timeout to 12h 2021-06-21 18:35:05 +00:00
Tommaso Pecorella
f580b27f09 ci: fix doxygen generation script 2021-06-17 22:28:01 +00:00
Tommaso Pecorella
5c73ae4ccb ci: simplify doxygen warnings script 2021-06-16 22:49:21 +00:00
Tommaso Pecorella
705e8c2476 ci: prevent spurious stop on doxygen builds 2021-06-10 00:56:02 +00:00
Tommaso Pecorella
77d6088608 ci: fix master doxygen fails 2021-05-27 00:36:44 +00:00
Tommaso Pecorella
a13fe418ba ci: fix gcc-11 test 2021-05-16 18:06:58 +00:00
Tommaso Pecorella
2d150b0f6a ci: add gcc-11 jobs 2021-05-14 17:52:02 +00:00