~zhangew401/scope-aggregator/fix-empty-query-to-clickstore

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Gary.Wzl
  • Date: 2016-06-30 05:00:45 UTC
  • mfrom: (163.1.12 4.8-local-hints)
  • Revision ID: gary.wang@canonical.com-20160630050045-2p38uwpqgkdnge1x
Tags: 4.8
1.compile time optimization for string(QStringLiteral).
2.load the various json files once aggregator scope startup.
3.specify 'const' keyword for some variable in some cases.
4.pass by reference instead of by value if possible.
5.don't allocated memory(make_shared) based on local variable to avoid copy constructor.
6 remove duplicate obj creation.
7.fix invalid pointer for us::Category::SCPtr when look_up is called.
8.remove redundant files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
set_property(TARGET ${SO_NAME} PROPERTY COMPILE_FLAGS ${UNITY_SCOPES_CFLAGS})
18
18
qt5_use_modules(${SO_NAME} Network)
19
19
 
 
20
add_definitions(-DCHILD_JSON_FILE="child_scopes.json")
 
21
add_definitions(-DHINTS_JSON_FILE="hints.json")
 
22
 
20
23
install(
21
24
  TARGETS ${SO_NAME}
22
25
  LIBRARY DESTINATION "${SCOPE_INSTALLDIR}"