forked from OSchip/llvm-project
[scan-view] Rename 'Resources' --> 'share'
llvm-svn: 252977
This commit is contained in:
parent
5b7658c1a4
commit
5e20518443
|
@ -6,7 +6,7 @@ set(BinFiles
|
|||
scan-view
|
||||
startfile.py)
|
||||
|
||||
set(ResourceFiles
|
||||
set(ShareFiles
|
||||
FileRadar.scpt
|
||||
GetRadarVersion.scpt
|
||||
bugcatcher.ico)
|
||||
|
@ -24,16 +24,16 @@ if(CLANG_INSTALL_SCANVIEW)
|
|||
install(PROGRAMS ${BinFile} DESTINATION bin)
|
||||
endforeach()
|
||||
|
||||
foreach(ResourceFile ${ResourceFiles})
|
||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/scan-view/${ResourceFile}
|
||||
foreach(ShareFile ${ShareFiles})
|
||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/scan-view/${ShareFile}
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||
${CMAKE_BINARY_DIR}/share/scan-view
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Resources/${ResourceFile}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/share/${ShareFile}
|
||||
${CMAKE_BINARY_DIR}/share/scan-view/
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Resources/${ResourceFile})
|
||||
list(APPEND Depends ${CMAKE_BINARY_DIR}/share/scan-view/${ResourceFile})
|
||||
install(FILES Resources/${ResourceFile} DESTINATION share/scan-view)
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/share/${ShareFile})
|
||||
list(APPEND Depends ${CMAKE_BINARY_DIR}/share/scan-view/${ShareFile})
|
||||
install(FILES Shares/${ShareFile} DESTINATION share/scan-view)
|
||||
endforeach()
|
||||
|
||||
add_custom_target(scan-view ALL DEPENDS ${Depends})
|
||||
|
|
|
@ -31,7 +31,7 @@ $(ToolDir)/%: % Makefile $(ToolDir)/.dir
|
|||
$(Verb)cp $< $@
|
||||
$(Verb)chmod +x $@
|
||||
|
||||
$(ShareDir)/scan-view/%: Resources/% Makefile $(ShareDir)/scan-view/.dir
|
||||
$(ShareDir)/scan-view/%: share/% Makefile $(ShareDir)/scan-view/.dir
|
||||
$(Echo) "Copying $(notdir $<) to the 'share' directory..."
|
||||
$(Verb)cp $< $@
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ kReportReplacements.append((re.compile('<!-- REPORTSUMMARYEXTRA -->'),
|
|||
###
|
||||
# Other simple parameters
|
||||
|
||||
kResources = posixpath.join(posixpath.dirname(__file__), '../share/scan-view')
|
||||
kShare = posixpath.join(posixpath.dirname(__file__), '../share/scan-view')
|
||||
kConfigPath = os.path.expanduser('~/.scanview.cfg')
|
||||
|
||||
###
|
||||
|
@ -680,7 +680,7 @@ File Bug</h3>
|
|||
overrides['Radar']['Component Version'] = 'X'
|
||||
return self.send_report(None, overrides)
|
||||
elif name=='favicon.ico':
|
||||
return self.send_path(posixpath.join(kResources,'bugcatcher.ico'))
|
||||
return self.send_path(posixpath.join(kShare,'bugcatcher.ico'))
|
||||
|
||||
# Match directory entries.
|
||||
if components[-1] == '':
|
||||
|
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
Loading…
Reference in New Issue