Skip to content

Commit

Permalink
easm: Split to separate subdirectory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwkmwkmwk committed Jul 27, 2012
1 parent 0181c3e commit 955a147
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 18 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cmake_minimum_required(VERSION 2.6)
SET(CMAKE_C_FLAGS "-g -O2 -Wall")

add_subdirectory(util)
add_subdirectory(easm)
add_subdirectory(nva)
add_subdirectory(rnn)
add_subdirectory(envydis)
Expand Down
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Subdirectories:
- nva: Tools to directly access the GPU registers
- vstream: Tools to decode and encode raw video bitstreams
- vdpow: A tool aiding in VP3 reverse engineering
- easm: Utility code dealing with assembly language parsing & printing.
- util: Misc utility code shared between envytools modules


Expand Down
5 changes: 5 additions & 0 deletions easm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
easm_lex.c
easm_lex.h
easm_parse.c
easm_parse.h
libeasm.a
22 changes: 22 additions & 0 deletions easm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
project(ENVYTOOLS C)
cmake_minimum_required(VERSION 2.6)

find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)

include_directories(../include)

flex_target(easm_lex easm_lex.l ${CMAKE_CURRENT_BINARY_DIR}/easm_lex.c)
bison_target(easm_parse easm_parse.y ${CMAKE_CURRENT_BINARY_DIR}/easm_parse.c)
add_flex_bison_dependency(easm_lex easm_parse)

include_directories(.)

add_library(easm easm.c ${FLEX_easm_lex_OUTPUTS} ${BISON_easm_parse_OUTPUTS} easm_print.c)

target_link_libraries(easm envyutil)

install(TARGETS easm
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions envydis/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
envydis
envyas
easm_lex.c
easm_lex.h
easm_parse.c
easm_parse.h
libenvy.a
libeasm.a
14 changes: 1 addition & 13 deletions envydis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,18 @@ cmake_minimum_required(VERSION 2.6)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-braces")

find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)

include_directories(../include)

flex_target(easm_lex easm_lex.l ${CMAKE_CURRENT_BINARY_DIR}/easm_lex.c)
bison_target(easm_parse easm_parse.y ${CMAKE_CURRENT_BINARY_DIR}/easm_parse.c)
add_flex_bison_dependency(easm_lex easm_parse)

include_directories(.)

add_library(envy core.c nv50.c nvc0.c ctx.c fuc.c hwsq.c vp2.c vuc.c macro.c vp1.c)

add_library(easm easm.c ${FLEX_easm_lex_OUTPUTS} ${BISON_easm_parse_OUTPUTS} easm_print.c)

add_executable(envydis envydis.c)
add_executable(envyas envyas.c convert.c)

target_link_libraries(easm envyutil)
target_link_libraries(envy envyutil easm)
target_link_libraries(envydis envy)
target_link_libraries(envyas envy envyutil)

install(TARGETS envydis envy easm envyas
install(TARGETS envydis envy envyas
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX})

0 comments on commit 955a147

Please sign in to comment.