File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change
1
+ doxygen_data = configuration_data ()
2
+ doxygen_data.set(' PACKAGE_NAME' , ' libdsm' )
3
+ doxygen_data.set(' BDSM_PACKAGE_VERSION' , meson .project_version())
4
+ doxygen_data.set(' abs_top_srcdir' , meson .source_root())
5
+
6
+ doxyfile = configure_file (
7
+ input : ' Doxyfile.in' ,
8
+ output : ' Doxyfile' ,
9
+ configuration : doxygen_data,
10
+ install : false )
11
+ doc_dir = join_paths (get_option (' datadir' ), ' doc' , ' libdsm' )
12
+ custom_target (' doc' ,
13
+ command : [doxygen, doxyfile],
14
+ input : doxyfile,
15
+ output : ' html' ,
16
+ install : true ,
17
+ install_dir : doc_dir)
Original file line number Diff line number Diff line change @@ -260,23 +260,7 @@ pkg_mod.generate(
260
260
# We only add the doc target if doxygen is found
261
261
doxygen = find_program (' doxygen' , required : false )
262
262
if doxygen.found()
263
- doxygen_data = configuration_data ()
264
- doxygen_data.set(' PACKAGE_NAME' , ' libdsm' )
265
- doxygen_data.set(' BDSM_PACKAGE_VERSION' , meson .project_version())
266
- doxygen_data.set(' abs_top_srcdir' , meson .source_root())
267
-
268
- doxyfile = configure_file (
269
- input : ' doc/Doxyfile.in' ,
270
- output : ' Doxyfile' ,
271
- configuration : doxygen_data,
272
- install : false )
273
- doc_dir = join_paths (get_option (' datadir' ), ' doc' , ' libdsm' )
274
- custom_target (' doc' ,
275
- command : [doxygen, doxyfile],
276
- input : doxyfile,
277
- output : ' html' ,
278
- install : true ,
279
- install_dir : doc_dir)
263
+ subdir (' doc' )
280
264
else
281
265
warning (' Doxygen not found - continuing without Doxygen support' )
282
266
endif
You can’t perform that action at this time.
0 commit comments