1
0
Эх сурвалжийг харах

Move source code into src

gejun 6 жил өмнө
parent
commit
91fdb5d750
100 өөрчлөгдсөн 170 нэмэгдсэн , 170 устгасан
  1. 170 170
      Makefile
  2. 0 0
      src/base/allocator/type_profiler_control.cc
  3. 0 0
      src/base/allocator/type_profiler_control.h
  4. 0 0
      src/base/arena.cpp
  5. 0 0
      src/base/arena.h
  6. 0 0
      src/base/at_exit.cc
  7. 0 0
      src/base/at_exit.h
  8. 0 0
      src/base/atomic_ref_count.h
  9. 0 0
      src/base/atomic_sequence_num.h
  10. 0 0
      src/base/atomicops.h
  11. 0 0
      src/base/atomicops_internals_arm64_gcc.h
  12. 0 0
      src/base/atomicops_internals_arm_gcc.h
  13. 0 0
      src/base/atomicops_internals_atomicword_compat.h
  14. 0 0
      src/base/atomicops_internals_gcc.h
  15. 0 0
      src/base/atomicops_internals_mac.h
  16. 0 0
      src/base/atomicops_internals_mips_gcc.h
  17. 0 0
      src/base/atomicops_internals_tsan.h
  18. 0 0
      src/base/atomicops_internals_x86_gcc.cc
  19. 0 0
      src/base/atomicops_internals_x86_gcc.h
  20. 0 0
      src/base/atomicops_internals_x86_msvc.h
  21. 0 0
      src/base/auto_reset.h
  22. 0 0
      src/base/barrier_closure.cc
  23. 0 0
      src/base/barrier_closure.h
  24. 0 0
      src/base/base64.cc
  25. 0 0
      src/base/base64.h
  26. 0 0
      src/base/base_export.h
  27. 0 0
      src/base/base_paths.cc
  28. 0 0
      src/base/base_paths.h
  29. 0 0
      src/base/base_paths_android.h
  30. 0 0
      src/base/base_paths_mac.h
  31. 0 0
      src/base/base_paths_mac.mm
  32. 0 0
      src/base/base_paths_posix.cc
  33. 0 0
      src/base/base_paths_posix.h
  34. 0 0
      src/base/base_switches.cc
  35. 0 0
      src/base/base_switches.h
  36. 0 0
      src/base/basictypes.h
  37. 0 0
      src/base/big_endian.cc
  38. 0 0
      src/base/big_endian.h
  39. 0 0
      src/base/bind.h
  40. 0 0
      src/base/bind_helpers.cc
  41. 0 0
      src/base/bind_helpers.h
  42. 0 0
      src/base/bind_internal.h
  43. 0 0
      src/base/bit_array.h
  44. 0 0
      src/base/bits.h
  45. 0 0
      src/base/build_config.h
  46. 0 0
      src/base/callback.h
  47. 0 0
      src/base/callback_forward.h
  48. 0 0
      src/base/callback_helpers.cc
  49. 0 0
      src/base/callback_helpers.h
  50. 0 0
      src/base/callback_internal.cc
  51. 0 0
      src/base/callback_internal.h
  52. 0 0
      src/base/callback_list.h
  53. 0 0
      src/base/cancelable_callback.h
  54. 0 0
      src/base/class_name.cpp
  55. 0 0
      src/base/class_name.h
  56. 0 0
      src/base/comlog_sink.cc
  57. 0 0
      src/base/comlog_sink.h
  58. 0 0
      src/base/command_line.cc
  59. 0 0
      src/base/command_line.h
  60. 0 0
      src/base/compiler_specific.h
  61. 0 0
      src/base/containers/bounded_queue.h
  62. 0 0
      src/base/containers/case_ignored_flat_map.cpp
  63. 0 0
      src/base/containers/case_ignored_flat_map.h
  64. 0 0
      src/base/containers/doubly_buffered_data.h
  65. 0 0
      src/base/containers/flat_map.h
  66. 0 0
      src/base/containers/flat_map_inl.h
  67. 0 0
      src/base/containers/hash_tables.h
  68. 0 0
      src/base/containers/linked_list.h
  69. 0 0
      src/base/containers/mru_cache.h
  70. 0 0
      src/base/containers/pooled_map.h
  71. 0 0
      src/base/containers/scoped_ptr_hash_map.h
  72. 0 0
      src/base/containers/small_map.h
  73. 0 0
      src/base/containers/stack_container.h
  74. 0 0
      src/base/cpu.cc
  75. 0 0
      src/base/cpu.h
  76. 0 0
      src/base/crc32c.cc
  77. 0 0
      src/base/crc32c.h
  78. 0 0
      src/base/debug/alias.cc
  79. 0 0
      src/base/debug/alias.h
  80. 0 0
      src/base/debug/asan_invalid_access.cc
  81. 0 0
      src/base/debug/asan_invalid_access.h
  82. 0 0
      src/base/debug/crash_logging.cc
  83. 0 0
      src/base/debug/crash_logging.h
  84. 0 0
      src/base/debug/debugger.cc
  85. 0 0
      src/base/debug/debugger.h
  86. 0 0
      src/base/debug/debugger_posix.cc
  87. 0 0
      src/base/debug/dump_without_crashing.cc
  88. 0 0
      src/base/debug/dump_without_crashing.h
  89. 0 0
      src/base/debug/leak_annotations.h
  90. 0 0
      src/base/debug/leak_tracker.h
  91. 0 0
      src/base/debug/proc_maps_linux.cc
  92. 0 0
      src/base/debug/proc_maps_linux.h
  93. 0 0
      src/base/debug/stack_trace.cc
  94. 0 0
      src/base/debug/stack_trace.h
  95. 0 0
      src/base/debug/stack_trace_posix.cc
  96. 0 0
      src/base/endpoint.cpp
  97. 0 0
      src/base/endpoint.h
  98. 0 0
      src/base/environment.cc
  99. 0 0
      src/base/environment.h
  100. 0 0
      src/base/errno.cpp

+ 170 - 170
Makefile

@@ -9,7 +9,7 @@ include config.mk
 CPPFLAGS=-DBTHREAD_USE_FAST_PTHREAD_MUTEX -D__const__= -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DBRPC_REVISION=\"$(shell git rev-parse --short HEAD)\"
 CXXFLAGS=$(CPPFLAGS) -O2 -g -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -std=c++0x -include brpc/config.h
 CFLAGS=$(CPPFLAGS) -O2 -g -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-unused-parameter -fno-omit-frame-pointer
-HDRPATHS=-I. $(addprefix -I, $(HDRS))
+HDRPATHS=-I./src $(addprefix -I, $(HDRS))
 LIBPATHS = $(addprefix -L, $(LIBS))
 SRCEXTS = .c .cc .cpp .proto
 HDREXTS = .h .hpp
@@ -19,194 +19,194 @@ ifeq ($(shell test $(shell $(CXX) -dumpversion | sed -e 's/\..*$$//g') -ge 7; ec
 endif
 
 BASE_SOURCES = \
-    base/third_party/dmg_fp/g_fmt.cc \
-    base/third_party/dmg_fp/dtoa_wrapper.cc \
-    base/third_party/dmg_fp/dtoa.cc \
-    base/third_party/dynamic_annotations/dynamic_annotations.c \
-    base/third_party/icu/icu_utf.cc \
-    base/third_party/superfasthash/superfasthash.c \
-    base/third_party/modp_b64/modp_b64.cc \
-    base/third_party/nspr/prtime.cc \
-    base/third_party/symbolize/demangle.cc \
-    base/third_party/symbolize/symbolize.cc \
-    base/third_party/xdg_mime/xdgmime.c \
-    base/third_party/xdg_mime/xdgmimealias.c \
-    base/third_party/xdg_mime/xdgmimecache.c \
-    base/third_party/xdg_mime/xdgmimeglob.c \
-    base/third_party/xdg_mime/xdgmimeicon.c \
-    base/third_party/xdg_mime/xdgmimeint.c \
-    base/third_party/xdg_mime/xdgmimemagic.c \
-    base/third_party/xdg_mime/xdgmimeparent.c \
-    base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc \
-    base/third_party/snappy/snappy-sinksource.cc \
-    base/third_party/snappy/snappy-stubs-internal.cc \
-    base/third_party/snappy/snappy.cc \
-    base/third_party/murmurhash3/murmurhash3.cpp \
-    base/allocator/type_profiler_control.cc \
-    base/arena.cpp \
-    base/at_exit.cc \
-    base/atomicops_internals_x86_gcc.cc \
-    base/barrier_closure.cc \
-    base/base_paths.cc \
-    base/base_paths_posix.cc \
-    base/base64.cc \
-    base/base_switches.cc \
-    base/big_endian.cc \
-    base/bind_helpers.cc \
-    base/callback_helpers.cc \
-    base/callback_internal.cc \
-    base/command_line.cc \
-    base/cpu.cc \
-    base/debug/alias.cc \
-    base/debug/asan_invalid_access.cc \
-    base/debug/crash_logging.cc \
-    base/debug/debugger.cc \
-    base/debug/debugger_posix.cc \
-    base/debug/dump_without_crashing.cc \
-    base/debug/proc_maps_linux.cc \
-    base/debug/stack_trace.cc \
-    base/debug/stack_trace_posix.cc \
-    base/environment.cc \
-    base/files/file.cc \
-    base/files/file_posix.cc \
-    base/files/file_enumerator.cc \
-    base/files/file_enumerator_posix.cc \
-    base/files/file_path.cc \
-    base/files/file_path_constants.cc \
-    base/files/memory_mapped_file.cc \
-    base/files/memory_mapped_file_posix.cc \
-    base/files/scoped_file.cc \
-    base/files/scoped_temp_dir.cc \
-    base/file_util.cc \
-    base/file_util_linux.cc \
-    base/file_util_posix.cc \
-    base/guid.cc \
-    base/guid_posix.cc \
-    base/hash.cc \
-    base/lazy_instance.cc \
-    base/location.cc \
-    base/md5.cc \
-    base/memory/aligned_memory.cc \
-    base/memory/ref_counted.cc \
-    base/memory/ref_counted_memory.cc \
-    base/memory/shared_memory_posix.cc \
-    base/memory/singleton.cc \
-    base/memory/weak_ptr.cc \
-    base/nix/mime_util_xdg.cc \
-    base/nix/xdg_util.cc \
-    base/path_service.cc \
-    base/posix/file_descriptor_shuffle.cc \
-    base/posix/global_descriptors.cc \
-    base/process/internal_linux.cc \
-    base/process/kill.cc \
-    base/process/kill_posix.cc \
-    base/process/launch.cc \
-    base/process/launch_posix.cc \
-    base/process/process_handle_linux.cc \
-    base/process/process_handle_posix.cc \
-    base/process/process_info_linux.cc \
-    base/process/process_iterator.cc \
-    base/process/process_iterator_linux.cc \
-    base/process/process_linux.cc \
-    base/process/process_metrics.cc \
-    base/process/process_metrics_linux.cc \
-    base/process/process_metrics_posix.cc \
-    base/process/process_posix.cc \
-    base/rand_util.cc \
-    base/rand_util_posix.cc \
-    base/fast_rand.cpp \
-    base/safe_strerror_posix.cc \
-    base/sha1_portable.cc \
-    base/strings/latin1_string_conversions.cc \
-    base/strings/nullable_string16.cc \
-    base/strings/safe_sprintf.cc \
-    base/strings/string16.cc \
-    base/strings/string_number_conversions.cc \
-    base/strings/string_split.cc \
-    base/strings/string_piece.cc \
-    base/strings/string_util.cc \
-    base/strings/string_util_constants.cc \
-    base/strings/stringprintf.cc \
-    base/strings/sys_string_conversions_posix.cc \
-    base/strings/utf_offset_string_conversions.cc \
-    base/strings/utf_string_conversion_utils.cc \
-    base/strings/utf_string_conversions.cc \
-    base/synchronization/cancellation_flag.cc \
-    base/synchronization/condition_variable_posix.cc \
-    base/synchronization/waitable_event_posix.cc \
-    base/sys_info.cc \
-    base/sys_info_linux.cc \
-    base/sys_info_posix.cc \
-    base/threading/non_thread_safe_impl.cc \
-    base/threading/platform_thread_linux.cc \
-    base/threading/platform_thread_posix.cc \
-    base/threading/simple_thread.cc \
-    base/threading/thread_checker_impl.cc \
-    base/threading/thread_collision_warner.cc \
-    base/threading/thread_id_name_manager.cc \
-    base/threading/thread_local_posix.cc \
-    base/threading/thread_local_storage.cc \
-    base/threading/thread_local_storage_posix.cc \
-    base/threading/thread_restrictions.cc \
-    base/threading/watchdog.cc \
-    base/time/clock.cc \
-    base/time/default_clock.cc \
-    base/time/default_tick_clock.cc \
-    base/time/tick_clock.cc \
-    base/time/time.cc \
-    base/time/time_posix.cc \
-    base/version.cc \
-    base/logging.cc \
-    base/class_name.cpp \
-    base/errno.cpp \
-    base/find_cstr.cpp \
-    base/status.cpp \
-    base/string_printf.cpp \
-    base/thread_local.cpp \
-    base/unix_socket.cpp \
-    base/endpoint.cpp \
-    base/fd_utility.cpp \
-    base/files/temp_file.cpp \
-    base/files/file_watcher.cpp \
-    base/time.cpp \
-    base/zero_copy_stream_as_streambuf.cpp \
-    base/crc32c.cc \
-    base/containers/case_ignored_flat_map.cpp \
-    base/iobuf.cpp
+    src/base/third_party/dmg_fp/g_fmt.cc \
+    src/base/third_party/dmg_fp/dtoa_wrapper.cc \
+    src/base/third_party/dmg_fp/dtoa.cc \
+    src/base/third_party/dynamic_annotations/dynamic_annotations.c \
+    src/base/third_party/icu/icu_utf.cc \
+    src/base/third_party/superfasthash/superfasthash.c \
+    src/base/third_party/modp_b64/modp_b64.cc \
+    src/base/third_party/nspr/prtime.cc \
+    src/base/third_party/symbolize/demangle.cc \
+    src/base/third_party/symbolize/symbolize.cc \
+    src/base/third_party/xdg_mime/xdgmime.c \
+    src/base/third_party/xdg_mime/xdgmimealias.c \
+    src/base/third_party/xdg_mime/xdgmimecache.c \
+    src/base/third_party/xdg_mime/xdgmimeglob.c \
+    src/base/third_party/xdg_mime/xdgmimeicon.c \
+    src/base/third_party/xdg_mime/xdgmimeint.c \
+    src/base/third_party/xdg_mime/xdgmimemagic.c \
+    src/base/third_party/xdg_mime/xdgmimeparent.c \
+    src/base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc \
+    src/base/third_party/snappy/snappy-sinksource.cc \
+    src/base/third_party/snappy/snappy-stubs-internal.cc \
+    src/base/third_party/snappy/snappy.cc \
+    src/base/third_party/murmurhash3/murmurhash3.cpp \
+    src/base/allocator/type_profiler_control.cc \
+    src/base/arena.cpp \
+    src/base/at_exit.cc \
+    src/base/atomicops_internals_x86_gcc.cc \
+    src/base/barrier_closure.cc \
+    src/base/base_paths.cc \
+    src/base/base_paths_posix.cc \
+    src/base/base64.cc \
+    src/base/base_switches.cc \
+    src/base/big_endian.cc \
+    src/base/bind_helpers.cc \
+    src/base/callback_helpers.cc \
+    src/base/callback_internal.cc \
+    src/base/command_line.cc \
+    src/base/cpu.cc \
+    src/base/debug/alias.cc \
+    src/base/debug/asan_invalid_access.cc \
+    src/base/debug/crash_logging.cc \
+    src/base/debug/debugger.cc \
+    src/base/debug/debugger_posix.cc \
+    src/base/debug/dump_without_crashing.cc \
+    src/base/debug/proc_maps_linux.cc \
+    src/base/debug/stack_trace.cc \
+    src/base/debug/stack_trace_posix.cc \
+    src/base/environment.cc \
+    src/base/files/file.cc \
+    src/base/files/file_posix.cc \
+    src/base/files/file_enumerator.cc \
+    src/base/files/file_enumerator_posix.cc \
+    src/base/files/file_path.cc \
+    src/base/files/file_path_constants.cc \
+    src/base/files/memory_mapped_file.cc \
+    src/base/files/memory_mapped_file_posix.cc \
+    src/base/files/scoped_file.cc \
+    src/base/files/scoped_temp_dir.cc \
+    src/base/file_util.cc \
+    src/base/file_util_linux.cc \
+    src/base/file_util_posix.cc \
+    src/base/guid.cc \
+    src/base/guid_posix.cc \
+    src/base/hash.cc \
+    src/base/lazy_instance.cc \
+    src/base/location.cc \
+    src/base/md5.cc \
+    src/base/memory/aligned_memory.cc \
+    src/base/memory/ref_counted.cc \
+    src/base/memory/ref_counted_memory.cc \
+    src/base/memory/shared_memory_posix.cc \
+    src/base/memory/singleton.cc \
+    src/base/memory/weak_ptr.cc \
+    src/base/nix/mime_util_xdg.cc \
+    src/base/nix/xdg_util.cc \
+    src/base/path_service.cc \
+    src/base/posix/file_descriptor_shuffle.cc \
+    src/base/posix/global_descriptors.cc \
+    src/base/process/internal_linux.cc \
+    src/base/process/kill.cc \
+    src/base/process/kill_posix.cc \
+    src/base/process/launch.cc \
+    src/base/process/launch_posix.cc \
+    src/base/process/process_handle_linux.cc \
+    src/base/process/process_handle_posix.cc \
+    src/base/process/process_info_linux.cc \
+    src/base/process/process_iterator.cc \
+    src/base/process/process_iterator_linux.cc \
+    src/base/process/process_linux.cc \
+    src/base/process/process_metrics.cc \
+    src/base/process/process_metrics_linux.cc \
+    src/base/process/process_metrics_posix.cc \
+    src/base/process/process_posix.cc \
+    src/base/rand_util.cc \
+    src/base/rand_util_posix.cc \
+    src/base/fast_rand.cpp \
+    src/base/safe_strerror_posix.cc \
+    src/base/sha1_portable.cc \
+    src/base/strings/latin1_string_conversions.cc \
+    src/base/strings/nullable_string16.cc \
+    src/base/strings/safe_sprintf.cc \
+    src/base/strings/string16.cc \
+    src/base/strings/string_number_conversions.cc \
+    src/base/strings/string_split.cc \
+    src/base/strings/string_piece.cc \
+    src/base/strings/string_util.cc \
+    src/base/strings/string_util_constants.cc \
+    src/base/strings/stringprintf.cc \
+    src/base/strings/sys_string_conversions_posix.cc \
+    src/base/strings/utf_offset_string_conversions.cc \
+    src/base/strings/utf_string_conversion_utils.cc \
+    src/base/strings/utf_string_conversions.cc \
+    src/base/synchronization/cancellation_flag.cc \
+    src/base/synchronization/condition_variable_posix.cc \
+    src/base/synchronization/waitable_event_posix.cc \
+    src/base/sys_info.cc \
+    src/base/sys_info_linux.cc \
+    src/base/sys_info_posix.cc \
+    src/base/threading/non_thread_safe_impl.cc \
+    src/base/threading/platform_thread_linux.cc \
+    src/base/threading/platform_thread_posix.cc \
+    src/base/threading/simple_thread.cc \
+    src/base/threading/thread_checker_impl.cc \
+    src/base/threading/thread_collision_warner.cc \
+    src/base/threading/thread_id_name_manager.cc \
+    src/base/threading/thread_local_posix.cc \
+    src/base/threading/thread_local_storage.cc \
+    src/base/threading/thread_local_storage_posix.cc \
+    src/base/threading/thread_restrictions.cc \
+    src/base/threading/watchdog.cc \
+    src/base/time/clock.cc \
+    src/base/time/default_clock.cc \
+    src/base/time/default_tick_clock.cc \
+    src/base/time/tick_clock.cc \
+    src/base/time/time.cc \
+    src/base/time/time_posix.cc \
+    src/base/version.cc \
+    src/base/logging.cc \
+    src/base/class_name.cpp \
+    src/base/errno.cpp \
+    src/base/find_cstr.cpp \
+    src/base/status.cpp \
+    src/base/string_printf.cpp \
+    src/base/thread_local.cpp \
+    src/base/unix_socket.cpp \
+    src/base/endpoint.cpp \
+    src/base/fd_utility.cpp \
+    src/base/files/temp_file.cpp \
+    src/base/files/file_watcher.cpp \
+    src/base/time.cpp \
+    src/base/zero_copy_stream_as_streambuf.cpp \
+    src/base/crc32c.cc \
+    src/base/containers/case_ignored_flat_map.cpp \
+    src/base/iobuf.cpp
 
 BASE_PROTOS = $(filter %.proto,$(BASE_SOURCES))
 BASE_CFAMILIES = $(filter-out %.proto,$(BASE_SOURCES))
 BASE_OBJS = $(BASE_PROTOS:.proto=.pb.o) $(addsuffix .o, $(basename $(BASE_CFAMILIES)))
 BASE_DEBUG_OBJS = $(BASE_OBJS:.o=.dbg.o)
 
-BVAR_DIRS = bvar bvar/detail
+BVAR_DIRS = src/bvar src/bvar/detail
 BVAR_SOURCES = $(foreach d,$(BVAR_DIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS))))
 BVAR_OBJS = $(addsuffix .o, $(basename $(BVAR_SOURCES))) 
 BVAR_DEBUG_OBJS = $(BVAR_OBJS:.o=.dbg.o)
 
-BTHREAD_DIRS = bthread
+BTHREAD_DIRS = src/bthread
 BTHREAD_SOURCES = $(foreach d,$(BTHREAD_DIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS))))
 BTHREAD_OBJS = $(addsuffix .o, $(basename $(BTHREAD_SOURCES))) 
 BTHREAD_DEBUG_OBJS = $(BTHREAD_OBJS:.o=.dbg.o)
 
-JSON2PB_DIRS = json2pb
+JSON2PB_DIRS = src/json2pb
 JSON2PB_SOURCES = $(foreach d,$(JSON2PB_DIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS))))
 JSON2PB_OBJS = $(addsuffix .o, $(basename $(JSON2PB_SOURCES))) 
 JSON2PB_DEBUG_OBJS = $(JSON2PB_OBJS:.o=.dbg.o)
 
-BRPC_DIRS = brpc brpc/details brpc/builtin brpc/policy
+BRPC_DIRS = src/brpc src/brpc/details src/brpc/builtin src/brpc/policy
 BRPC_SOURCES = $(foreach d,$(BRPC_DIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS))))
 BRPC_PROTOS = $(filter %.proto,$(BRPC_SOURCES))
-BRPC_CFAMILIES = $(filter-out %.proto brpc/policy/baidu_naming_service.cpp brpc/policy/giano_authenticator.cpp,$(BRPC_SOURCES))
+BRPC_CFAMILIES = $(filter-out %.proto,$(BRPC_SOURCES))
 BRPC_OBJS = $(BRPC_PROTOS:.proto=.pb.o) $(addsuffix .o, $(basename $(BRPC_CFAMILIES)))
 BRPC_DEBUG_OBJS = $(BRPC_OBJS:.o=.dbg.o)
 
 MCPACK2PB_SOURCES = \
-	mcpack2pb/field_type.cpp \
-	mcpack2pb/mcpack2pb.cpp \
-	mcpack2pb/parser.cpp \
-	mcpack2pb/serializer.cpp
-MCPACK2PB_OBJS = idl_options.pb.o $(addsuffix .o, $(basename $(MCPACK2PB_SOURCES)))
+	src/mcpack2pb/field_type.cpp \
+	src/mcpack2pb/mcpack2pb.cpp \
+	src/mcpack2pb/parser.cpp \
+	src/mcpack2pb/serializer.cpp
+MCPACK2PB_OBJS = src/idl_options.pb.o $(addsuffix .o, $(basename $(MCPACK2PB_SOURCES)))
 MCPACK2PB_DEBUG_OBJS = $(MCPACK2PB_OBJS:.o=.dbg.o)
 
 .PHONY:all
@@ -267,7 +267,7 @@ libmcpack2pb.dbg.a:$(MCPACK2PB_DEBUG_OBJS)
 	@echo "Packing $@"
 	@ar crs $@ $^
 
-protoc-gen-mcpack:mcpack2pb/generator.o libmcpack2pb.a libbase.a libbthread.a libbvar.a
+protoc-gen-mcpack:src/mcpack2pb/generator.o libmcpack2pb.a libbase.a libbthread.a libbvar.a
 	@echo "Linking $@"
 	@$(CXX) -o $@ $(LIBPATHS) -Xlinker "-(" $^ -Wl,-Bstatic $(STATIC_LINKINGS) -Wl,-Bdynamic -Xlinker "-)" $(DYNAMIC_LINKINGS)
 
@@ -282,9 +282,9 @@ libbrpc.dbg.a:$(BRPC_DEBUG_OBJS)
 .PHONY:output/include
 output/include:
 	@echo "Copying to $@"
-	@for dir in `find base bvar bthread brpc json2pb mcpack2pb -type f -name "*.h" -exec dirname {} \\; | sort | uniq`; do mkdir -p $@/$$dir && cp $$dir/*.h $@/$$dir/; done
-	@for dir in `find base bvar bthread brpc json2pb mcpack2pb -type f -name "*.hpp" -exec dirname {} \\; | sort | uniq`; do mkdir -p $@/$$dir && cp $$dir/*.hpp $@/$$dir/; done
-	@cp idl_options.proto idl_options.pb.h $@
+	@for dir in `find src -type f -name "*.h" -exec dirname {} \\; | sed -e 's/^src\///g' -e '/^src$$/d' | sort | uniq`; do mkdir -p $@/$$dir && cp src/$$dir/*.h $@/$$dir/; done
+	@for dir in `find src -type f -name "*.hpp" -exec dirname {} \\; | sed -e 's/^src\///g' -e '/^src$$/d' | sort | uniq`; do mkdir -p $@/$$dir && cp src/$$dir/*.hpp $@/$$dir/; done
+	@cp src/idl_options.proto src/idl_options.pb.h $@
 
 .PHONY:output/lib
 output/lib:libbase.a libbvar.a libbthread.a libjson2pb.a libmcpack2pb.a libbrpc.a
@@ -300,7 +300,7 @@ output/bin:protoc-gen-mcpack
 
 %.pb.cc:%.proto
 	@echo "Generating $@"
-	@$(PROTOC) --cpp_out=. --proto_path=. --proto_path=$(PROTOBUF_HDR) $<
+	@$(PROTOC) --cpp_out=./src --proto_path=./src --proto_path=$(PROTOBUF_HDR) $<
 
 %.o:%.cpp
 	@echo "Compiling $@"

+ 0 - 0
base/allocator/type_profiler_control.cc → src/base/allocator/type_profiler_control.cc


+ 0 - 0
base/allocator/type_profiler_control.h → src/base/allocator/type_profiler_control.h


+ 0 - 0
base/arena.cpp → src/base/arena.cpp


+ 0 - 0
base/arena.h → src/base/arena.h


+ 0 - 0
base/at_exit.cc → src/base/at_exit.cc


+ 0 - 0
base/at_exit.h → src/base/at_exit.h


+ 0 - 0
base/atomic_ref_count.h → src/base/atomic_ref_count.h


+ 0 - 0
base/atomic_sequence_num.h → src/base/atomic_sequence_num.h


+ 0 - 0
base/atomicops.h → src/base/atomicops.h


+ 0 - 0
base/atomicops_internals_arm64_gcc.h → src/base/atomicops_internals_arm64_gcc.h


+ 0 - 0
base/atomicops_internals_arm_gcc.h → src/base/atomicops_internals_arm_gcc.h


+ 0 - 0
base/atomicops_internals_atomicword_compat.h → src/base/atomicops_internals_atomicword_compat.h


+ 0 - 0
base/atomicops_internals_gcc.h → src/base/atomicops_internals_gcc.h


+ 0 - 0
base/atomicops_internals_mac.h → src/base/atomicops_internals_mac.h


+ 0 - 0
base/atomicops_internals_mips_gcc.h → src/base/atomicops_internals_mips_gcc.h


+ 0 - 0
base/atomicops_internals_tsan.h → src/base/atomicops_internals_tsan.h


+ 0 - 0
base/atomicops_internals_x86_gcc.cc → src/base/atomicops_internals_x86_gcc.cc


+ 0 - 0
base/atomicops_internals_x86_gcc.h → src/base/atomicops_internals_x86_gcc.h


+ 0 - 0
base/atomicops_internals_x86_msvc.h → src/base/atomicops_internals_x86_msvc.h


+ 0 - 0
base/auto_reset.h → src/base/auto_reset.h


+ 0 - 0
base/barrier_closure.cc → src/base/barrier_closure.cc


+ 0 - 0
base/barrier_closure.h → src/base/barrier_closure.h


+ 0 - 0
base/base64.cc → src/base/base64.cc


+ 0 - 0
base/base64.h → src/base/base64.h


+ 0 - 0
base/base_export.h → src/base/base_export.h


+ 0 - 0
base/base_paths.cc → src/base/base_paths.cc


+ 0 - 0
base/base_paths.h → src/base/base_paths.h


+ 0 - 0
base/base_paths_android.h → src/base/base_paths_android.h


+ 0 - 0
base/base_paths_mac.h → src/base/base_paths_mac.h


+ 0 - 0
base/base_paths_mac.mm → src/base/base_paths_mac.mm


+ 0 - 0
base/base_paths_posix.cc → src/base/base_paths_posix.cc


+ 0 - 0
base/base_paths_posix.h → src/base/base_paths_posix.h


+ 0 - 0
base/base_switches.cc → src/base/base_switches.cc


+ 0 - 0
base/base_switches.h → src/base/base_switches.h


+ 0 - 0
base/basictypes.h → src/base/basictypes.h


+ 0 - 0
base/big_endian.cc → src/base/big_endian.cc


+ 0 - 0
base/big_endian.h → src/base/big_endian.h


+ 0 - 0
base/bind.h → src/base/bind.h


+ 0 - 0
base/bind_helpers.cc → src/base/bind_helpers.cc


+ 0 - 0
base/bind_helpers.h → src/base/bind_helpers.h


+ 0 - 0
base/bind_internal.h → src/base/bind_internal.h


+ 0 - 0
base/bit_array.h → src/base/bit_array.h


+ 0 - 0
base/bits.h → src/base/bits.h


+ 0 - 0
base/build_config.h → src/base/build_config.h


+ 0 - 0
base/callback.h → src/base/callback.h


+ 0 - 0
base/callback_forward.h → src/base/callback_forward.h


+ 0 - 0
base/callback_helpers.cc → src/base/callback_helpers.cc


+ 0 - 0
base/callback_helpers.h → src/base/callback_helpers.h


+ 0 - 0
base/callback_internal.cc → src/base/callback_internal.cc


+ 0 - 0
base/callback_internal.h → src/base/callback_internal.h


+ 0 - 0
base/callback_list.h → src/base/callback_list.h


+ 0 - 0
base/cancelable_callback.h → src/base/cancelable_callback.h


+ 0 - 0
base/class_name.cpp → src/base/class_name.cpp


+ 0 - 0
base/class_name.h → src/base/class_name.h


+ 0 - 0
base/comlog_sink.cc → src/base/comlog_sink.cc


+ 0 - 0
base/comlog_sink.h → src/base/comlog_sink.h


+ 0 - 0
base/command_line.cc → src/base/command_line.cc


+ 0 - 0
base/command_line.h → src/base/command_line.h


+ 0 - 0
base/compiler_specific.h → src/base/compiler_specific.h


+ 0 - 0
base/containers/bounded_queue.h → src/base/containers/bounded_queue.h


+ 0 - 0
base/containers/case_ignored_flat_map.cpp → src/base/containers/case_ignored_flat_map.cpp


+ 0 - 0
base/containers/case_ignored_flat_map.h → src/base/containers/case_ignored_flat_map.h


+ 0 - 0
base/containers/doubly_buffered_data.h → src/base/containers/doubly_buffered_data.h


+ 0 - 0
base/containers/flat_map.h → src/base/containers/flat_map.h


+ 0 - 0
base/containers/flat_map_inl.h → src/base/containers/flat_map_inl.h


+ 0 - 0
base/containers/hash_tables.h → src/base/containers/hash_tables.h


+ 0 - 0
base/containers/linked_list.h → src/base/containers/linked_list.h


+ 0 - 0
base/containers/mru_cache.h → src/base/containers/mru_cache.h


+ 0 - 0
base/containers/pooled_map.h → src/base/containers/pooled_map.h


+ 0 - 0
base/containers/scoped_ptr_hash_map.h → src/base/containers/scoped_ptr_hash_map.h


+ 0 - 0
base/containers/small_map.h → src/base/containers/small_map.h


+ 0 - 0
base/containers/stack_container.h → src/base/containers/stack_container.h


+ 0 - 0
base/cpu.cc → src/base/cpu.cc


+ 0 - 0
base/cpu.h → src/base/cpu.h


+ 0 - 0
base/crc32c.cc → src/base/crc32c.cc


+ 0 - 0
base/crc32c.h → src/base/crc32c.h


+ 0 - 0
base/debug/alias.cc → src/base/debug/alias.cc


+ 0 - 0
base/debug/alias.h → src/base/debug/alias.h


+ 0 - 0
base/debug/asan_invalid_access.cc → src/base/debug/asan_invalid_access.cc


+ 0 - 0
base/debug/asan_invalid_access.h → src/base/debug/asan_invalid_access.h


+ 0 - 0
base/debug/crash_logging.cc → src/base/debug/crash_logging.cc


+ 0 - 0
base/debug/crash_logging.h → src/base/debug/crash_logging.h


+ 0 - 0
base/debug/debugger.cc → src/base/debug/debugger.cc


+ 0 - 0
base/debug/debugger.h → src/base/debug/debugger.h


+ 0 - 0
base/debug/debugger_posix.cc → src/base/debug/debugger_posix.cc


+ 0 - 0
base/debug/dump_without_crashing.cc → src/base/debug/dump_without_crashing.cc


+ 0 - 0
base/debug/dump_without_crashing.h → src/base/debug/dump_without_crashing.h


+ 0 - 0
base/debug/leak_annotations.h → src/base/debug/leak_annotations.h


+ 0 - 0
base/debug/leak_tracker.h → src/base/debug/leak_tracker.h


+ 0 - 0
base/debug/proc_maps_linux.cc → src/base/debug/proc_maps_linux.cc


+ 0 - 0
base/debug/proc_maps_linux.h → src/base/debug/proc_maps_linux.h


+ 0 - 0
base/debug/stack_trace.cc → src/base/debug/stack_trace.cc


+ 0 - 0
base/debug/stack_trace.h → src/base/debug/stack_trace.h


+ 0 - 0
base/debug/stack_trace_posix.cc → src/base/debug/stack_trace_posix.cc


+ 0 - 0
base/endpoint.cpp → src/base/endpoint.cpp


+ 0 - 0
base/endpoint.h → src/base/endpoint.h


+ 0 - 0
base/environment.cc → src/base/environment.cc


+ 0 - 0
base/environment.h → src/base/environment.h


+ 0 - 0
base/errno.cpp → src/base/errno.cpp


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно