mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Rockbox Utility: add description and helper code for VS.
For building Rockbox Utility with Visual Studio some extra steps need to be done. Visual Studio is also lacking some C99 standard headers. Add the missing headers (from clang / msinttypes) and a Makefile to automate the extra steps. See the README file for other requirements and necessary steps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31407 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7f7a2d3b13
commit
893666a734
5 changed files with 744 additions and 0 deletions
57
rbutil/rbutilqt/msvc/Makefile
Normal file
57
rbutil/rbutilqt/msvc/Makefile
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
#
|
||||
|
||||
ifndef V
|
||||
SILENT = @
|
||||
endif
|
||||
# The rbspeex Makefile has problems with msys' path mangling as well as running
|
||||
# MSVC's lib tool. Use TOP instead of pwd. This means the resulting files will
|
||||
# always be placed in this folder.
|
||||
# On Linux use the current folder instead.
|
||||
TOP := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
LIBS = ipodpatcher sansapatcher chinachippatcher \
|
||||
mkamsboot mkimxboot mkmpioboot mktccboot \
|
||||
ucl rbspeex
|
||||
|
||||
ifeq ($(findstring Linux,$(shell uname)),Linux)
|
||||
PWD=$(shell pwd)
|
||||
all: dll
|
||||
else
|
||||
PWD=$(abspath $(TOP))
|
||||
all: lib
|
||||
endif
|
||||
|
||||
CC=gcc
|
||||
dll: $(addsuffix .dll,$(LIBS))
|
||||
|
||||
ucl.dll:
|
||||
$(SILENT)$(MAKE) -C ../../../tools/ucl/src \
|
||||
TARGET_DIR=$(PWD)/ OBJDIR=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) APPVERSION=dll dll
|
||||
rbspeex.dll:
|
||||
$(SILENT)$(MAKE) -C ../../../tools/rbspeex \
|
||||
TARGET_DIR=$(PWD)/ OUT=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) STATIC=1 APPVERSION=dll dll
|
||||
|
||||
%.dll:
|
||||
$(SILENT)$(MAKE) -C ../../$(basename $@) \
|
||||
TARGET_DIR=$(PWD)/ BUILD_DIR=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) APPVERSION=dll dll
|
||||
|
||||
lib: $(addsuffix .lib,$(LIBS))
|
||||
|
||||
%.lib: %.dll
|
||||
@echo LIB $@
|
||||
@lib /machine:x86 /nologo /def:$(basename $<).def
|
||||
|
||||
clean:
|
||||
rm -rf $(addsuffix .dll,$(LIBS))
|
||||
rm -rf $(addsuffix .def,$(LIBS))
|
||||
rm -rf $(addsuffix .exp,$(LIBS))
|
||||
rm -rf $(addsuffix .lib,$(LIBS))
|
||||
rm -rf build-dll
|
||||
Loading…
Add table
Add a link
Reference in a new issue