Windows dist: move r2 related data to <radare2> subdir (#466)

* Update radare2
* Windows dist: move r2 related data to <radare2> subdir
This commit is contained in:
Paul I 2018-04-30 23:03:31 +03:00 committed by xarkes
parent eeec725b94
commit e97c22f214
5 changed files with 12 additions and 7 deletions

View File

@ -26,7 +26,6 @@ IF !ERRORLEVEL! NEQ 0 EXIT /B 1
ECHO Deploying cutter
MKDIR cutter
COPY release\cutter.exe cutter\cutter.exe
XCOPY /S /I ..\%R2DIST%\www cutter\www
XCOPY /S /I ..\%R2DIST%\share cutter\share
XCOPY /S /I ..\%R2DIST%\radare2 cutter\radare2
COPY ..\%R2DIST%\*.dll cutter\
windeployqt cutter\cutter.exe

View File

@ -71,7 +71,9 @@ def win_dist(args):
log.debug('Deploying Qt5')
subprocess.call(['windeployqt', '--release', os.path.join(dist, 'Cutter.exe')])
log.debug('Deploying libr2')
r2_meson_mod.win_dist_libr2(DIST=dist, BUILDDIR=os.path.join(build, 'subprojects', 'radare2'))
r2_meson_mod.PATH_FMT.update(r2_meson_mod.R2_PATH)
r2_meson_mod.win_dist_libr2(DIST=dist, BUILDDIR=os.path.join(build, 'subprojects', 'radare2'),
R2_DATDIR=r'radare2\share', R2_INCDIR=r'radare2\include')
def build(args):
cutter_builddir = os.path.join(ROOT, args.dir)
@ -87,6 +89,10 @@ def build(args):
defines.append('-Dqresources=%s' % ','.join(VARS['RESOURCES']))
defines.append('-Denable_jupyter=%s' % str(args.jupyter).lower())
defines.append('-Denable_webengine=%s' % str(args.webengine).lower())
if os.name == 'nt':
defines.append('-Dradare2:r2_incdir=radare2/include')
defines.append('-Dradare2:r2_libdir=radare2/lib')
defines.append('-Dradare2:r2_datdir=radare2/share')
r2_meson_mod.meson(os.path.join(ROOT, 'src'), cutter_builddir,
prefix=cutter_builddir, backend=args.backend,
release=True, shared=False, options=defines)

View File

@ -16,6 +16,6 @@ ECHO Building radare2 (%PLATFORM%)
CD radare2
git clean -xfd
RMDIR /S /Q ..\%R2DIST%
python sys\meson.py --release --shared --install=..\%R2DIST%
python sys\meson.py --release --shared --install=..\%R2DIST% --options r2_datdir=radare2/share
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
REN ..\%R2DIST%\lib\libr_shlr.a r_shlr.lib

@ -1 +1 @@
Subproject commit c79874941e4e4cc03c7135e65ea1d5adecb0bb1e
Subproject commit a2fbe0ed2dfa95365e04b61a1c33dc2cc7905516

View File

@ -4,10 +4,10 @@ win32 {
INCLUDEPATH += "$$PWD/../radare2/libr/include/msvc"
!contains(QT_ARCH, x86_64) {
LIBS += -L"$$PWD/../r2_dist_x86/lib"
INCLUDEPATH += "$$PWD/../r2_dist_x86/include/libr"
INCLUDEPATH += "$$PWD/../r2_dist_x86/include"
} else {
LIBS += -L"$$PWD/../r2_dist_x64/lib"
INCLUDEPATH += "$$PWD/../r2_dist_x64/include/libr"
INCLUDEPATH += "$$PWD/../r2_dist_x64/include"
}
LIBS += \