Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
refine version format
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0921 committed Apr 7, 2020
1 parent 6bd888f commit ec271ee
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
7 changes: 7 additions & 0 deletions icons/genico.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -eux

for i in $(ls *.svg)
do
convert -density 384 $i -define icon:auto-resize $(basename $i .svg).ico
done
39 changes: 16 additions & 23 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
project('timeseries_process','fortran')
project('timeseries_process',
'fortran',
default_options:['buildtype=debugoptimized']
)
add_global_arguments('-cpp',language:'fortran')
add_global_arguments('-ffixed-line-length-none',language:'fortran')

Expand All @@ -8,22 +11,12 @@ add_global_arguments('-ffixed-line-length-none',language:'fortran')
host_os = host_machine.system().to_lower()
message('Host os: ' + host_os)

platform_linux = (
host_os.contains('linux')
)

platform_windows = (
host_os.contains('mingw') or
host_os.contains('cygwin') or
host_os.contains('windows')
)

platform_osx = (
host_os.contains('machten') or
host_os.contains('rhapsody') or
host_os.contains('darwin')
)

#
################################################################################

Expand All @@ -43,22 +36,22 @@ remove_antenna_src = ['src/remove_antenna.for']
fit_src = ['src/fit.for','src/int2char.for','src/lsqr.for']
plot_ts_src = ['src/plot_ts.for']

#### TODO: Add WINDRES module commands ####
####### Add WINDRES module commands #######

if platform_windows

windres_args = '-O coff'
rcinfo_windows = import('windows')
bern2time_rcinfo = rcinfo_windows.compile_resources('windres/bern2time.rc')
getpl_rcinfo = rcinfo_windows.compile_resources('windres/getpl.rc')
comfilt_rcinfo = rcinfo_windows.compile_resources('windres/comfilt.rc')
raw_rcinfo = rcinfo_windows.compile_resources('windres/raw.rc')
comfilt_trend_rcinfo = rcinfo_windows.compile_resources('windres/comfilt_trend.rc')
remove_trend_rcinfo = rcinfo_windows.compile_resources('windres/remove_trend.rc')
remove_period_rcinfo = rcinfo_windows.compile_resources('windres/remove_period.rc')

bern2time_rcinfo = rcinfo_windows.compile_resources('windres/bern2time.rc' )
getpl_rcinfo = rcinfo_windows.compile_resources('windres/getpl.rc' )
comfilt_rcinfo = rcinfo_windows.compile_resources('windres/comfilt.rc' )
raw_rcinfo = rcinfo_windows.compile_resources('windres/raw.rc' )
comfilt_trend_rcinfo = rcinfo_windows.compile_resources('windres/comfilt_trend.rc' )
remove_trend_rcinfo = rcinfo_windows.compile_resources('windres/remove_trend.rc' )
remove_period_rcinfo = rcinfo_windows.compile_resources('windres/remove_period.rc' )
remove_antenna_rcinfo = rcinfo_windows.compile_resources('windres/remove_antenna.rc')
fit_rcinfo = rcinfo_windows.compile_resources('windres/fit.rc')
plot_ts_rcinfo = rcinfo_windows.compile_resources('windres/plot_ts.rc')
fit_rcinfo = rcinfo_windows.compile_resources('windres/fit.rc' )
plot_ts_rcinfo = rcinfo_windows.compile_resources('windres/plot_ts.rc' )

bern2time_src += bern2time_rcinfo
getpl_src += getpl_rcinfo
Expand All @@ -73,7 +66,7 @@ plot_ts_src += plot_ts_rcinfo

endif

############################################
###########################################

executable('bern2time' , bern2time_src )
executable('getpl' , getpl_src )
Expand Down
1 change: 1 addition & 0 deletions windres/genrc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -eux

## POSIX shell script for genenrate files for resources compilers (e.g. windres)

Expand Down
14 changes: 10 additions & 4 deletions windres/version.rc
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
#define VERSION_STR "2020.407.0.900"
#define MAJOR_VERSION 2020
#define MINOR_VERSION 407
#define MICRO_VERSION 0
#define NANO_VERSION 900

1 VERSIONINFO
FILEVERSION 2020,407,0,900
PRODUCTVERSION 2020,407,0,900
FILEVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,NANO_VERSION
PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,NANO_VERSION
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Department of Earth Sciences, NCKU"
VALUE "FileDescription", "Severnal Tools about Time Series Process (compiled by GNU Fortran and built by GNU AutoTools)"
VALUE "FileVersion", "2020.407.0-900"
VALUE "FileVersion", VERSION_STR
VALUE "LegalCopyright", "Seismology Lab"
VALUE "ProductName", "Time Series Process Toolchain"
VALUE "ProductVersion", "2020.407.0-900"
VALUE "ProductVersion", VERSION_STR
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit ec271ee

Please sign in to comment.