Mercurial > hg > orthanc-stone
diff Resources/SyncOrthancFolder.py @ 1504:d8af188ab545
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2020 20:35:16 +0200 |
parents | 8e5f69c94fea |
children | dd1d1cc0575d |
line wrap: on
line diff
--- a/Resources/SyncOrthancFolder.py Tue Jun 30 11:38:13 2020 +0200 +++ b/Resources/SyncOrthancFolder.py Tue Jun 30 20:35:16 2020 +0200 @@ -11,14 +11,26 @@ import urllib2 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') +PLUGIN_SDK_VERSION = '1.0.0' REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file' FILES = [ - 'CMake/DownloadOrthancFramework.cmake', - 'LinuxStandardBaseToolchain.cmake', - 'MinGW-W64-Toolchain32.cmake', - 'MinGW-W64-Toolchain64.cmake', - 'MinGWToolchain.cmake', + ('OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake', '.'), + ('OrthancFramework/Resources/Toolchains/LinuxStandardBaseToolchain.cmake', '.'), + ('OrthancFramework/Resources/Toolchains/MinGW-W64-Toolchain32.cmake', '.'), + ('OrthancFramework/Resources/Toolchains/MinGW-W64-Toolchain64.cmake', '.'), + ('OrthancFramework/Resources/Toolchains/MinGWToolchain.cmake', '.'), + + ('OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h', + '../../StoneWebViewer/Resources/Orthanc'), + ('OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp', + '../../StoneWebViewer/Resources/Orthanc'), + ('OrthancServer/Plugins/Samples/Common/OrthancPluginException.h', + '../../StoneWebViewer/Resources/Orthanc'), +] + +SDK = [ + 'orthanc/OrthancCPlugin.h', ] @@ -43,8 +55,15 @@ for f in FILES: commands.append([ 'default', - os.path.join('Resources', f), - os.path.basename(f) ]) + f[0], + os.path.join(f[1], os.path.basename(f[0])) ]) + +for f in SDK: + commands.append([ + 'Orthanc-%s' % PLUGIN_SDK_VERSION, + 'Plugins/Include/%s' % f, + '../../StoneWebViewer/Resources/OrthancSdk-%s/%s' % (PLUGIN_SDK_VERSION, f) + ]) pool = multiprocessing.Pool(10) # simultaneous downloads pool.map(Download, commands)