41 Commits

Author SHA1 Message Date
André Apitzsch
bd3279cb7b build: remove unneeded cmake version switches 2025-06-08 20:22:11 +00:00
Eduardo Almeida
6ef966c4cf Replace Doxygen tags using \ with @ 2024-11-08 18:05:46 +00:00
André Apitzsch
8bc94a1cc3 Use SPDX license identifiers 2024-09-06 19:32:31 +00:00
Gabriel Ferreira
ff566e348a build: raise error on missing or multiple main function in a scratch target 2023-12-15 22:57:27 -03:00
Eduardo Almeida
6c87965ae2 scratch: Add nested-subdir/ to list of non-ignored dirs of .gitignore 2023-10-08 14:33:24 +01:00
Gabriel Ferreira
e499c28478 build: fix scratch targets for file names containing dots in CMake < 3.14 2023-04-10 18:59:51 +00:00
Gabriel Ferreira
85fcf95f36 build: (fixes #881) fix scratch targets for file names containing dots 2023-04-08 15:29:11 -03:00
Gabriel Ferreira
df5fa6bc3b build,scratch: add a nested scratch directory example
Signed-off-by: Gabriel Ferreira <gabrielcarvfer@gmail.com>
2023-02-01 16:46:15 +00:00
Eduardo Almeida
dfc6fb9d2d Remove emacs comment from C++ files 2022-10-14 14:13:12 +00:00
Eduardo Almeida
f115e188bd gitignore: Update scratch/ .gitignore to not exclude itself 2022-10-09 22:45:49 +00:00
Eduardo Almeida
e25ff966fe Apply clang-format to codebase 2022-10-07 20:08:35 +00:00
Gabriel Ferreira
c633a1420c build: Add new build_exec macro to declare executable targets
Also adds IGNORE_PCH option to build_example macro.
2022-09-17 11:13:38 +00:00
Eduardo Almeida
04c9d95d0e scratch: Change scratch subdir example to show the use of additional files 2022-08-18 16:35:52 +00:00
Gabriel Ferreira
63288690bb build: force linkage of all module libraries to scratches 2022-08-03 18:23:20 -03:00
Gabriel Ferreira
36bd103c49 build: ignore hidden source files in the scratch directory
Fixes https://gitlab.com/nsnam/ns-3-dev/-/issues/684
2022-06-21 15:42:33 -03:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Eduardo Almeida
1ac48ef57d scratch: Add missing return statement to scratch-simulator.cc 2022-05-26 17:49:38 +00:00
Eduardo Almeida
c1bef60926 build: Automatically detect file changes in scratch directory 2022-03-13 22:16:00 +00:00
Gabriel Ferreira
acd5da1957 build: refresh project on scratch changes 2022-02-02 23:37:56 +00: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
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
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
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
9c876c7f5a CMake buildsystem 2021-12-01 12:29:55 -08:00
Eduardo Almeida
393d23732d Add .gitignore to scratch directory 2020-05-05 08:29:46 +02:00
Tom Henderson
22be8b7ae6 backout accidentally committed debugging code 2018-05-19 22:21:00 -07:00
Tom Henderson
dc51e4cc97 aodv: (fixes #2517, 2911) Binary exponential backoff problem 2018-05-19 19:16:31 -07:00
Peter D. Barnes, Jr.
38632b0e18 Add CommandLine to all examples 2016-05-27 01:24:32 -04:00
Peter D. Barnes, Jr.
bfdb6ef10a [Bug 1551] Redux: NS_LOG_COMPONENT_DEFINE inside or outside of ns3 namespace? 2014-09-26 15:51:00 -07:00
Peter D. Barnes, Jr.
8ef0956af1 [Bug 1496] Finish the documentation.
Also amended scratch-simulator so printing the list of log
components works as advertised.
2013-12-12 14:42:43 -08:00
Sebastian Rohde
d833ac9e2c Bug 1354 - Building scratch subdir programs is broken 2012-02-13 18:21:06 +00:00
Gustavo J. A. M. Carneiro
6937841b85 Remove accidental scratch code insertion/commit 2011-07-27 10:51:39 +01:00
Gustavo J. A. M. Carneiro
4cf581619e Rescan all python bindings for all modules 2011-07-20 16:02:32 +01:00
Mitch Watrous
010649d7ba Bug 1088 - Code in scratch directory assumes all modules are enabled 2011-04-17 20:06:22 -07:00
Tom Henderson
18f2715506 remove src/helper module 2011-03-05 11:47:37 -08:00
Lalith Suresh
59a2a4f959 Converts csma, emu, tap-bridge, point-to-point, wifi and wimax modules into modular format 2011-03-03 19:54:57 +00:00
Josh Pelkey
e09cf6a452 remove duplicate core-module.h includes 2011-03-01 09:59:55 -05:00
Tom Henderson
ca7b93cc3d Merge node and common modules into new network module 2011-02-21 09:11:37 -08:00
Tom Henderson
df07734f32 merge src/simulator into src/core; move src/core to new module layout 2011-02-18 16:05:39 -08:00
Mathieu Lacage
ba57aff953 Make sure that traffic generation events are associated with a context 2009-12-26 15:47:01 +01:00
Gustavo J. A. M. Carneiro
4a73b2abd0 [Bug 221] need a scratch directory 2008-06-16 14:17:27 +01:00